Search results for

“missing package product”

53,790 results found

Post

Replies

Boosts

Views

Activity

Reply to SMJobBless privileged helpers and granting permission
One of the operations my helper is doing that needs Full Disk Access is downloading a pkg and checking it is signed. I don’t really understand this. If your helper is downloading the file, it should put it in a place that doesn’t require Full Disk Access. Did I miss something in the security api, should I be able to look at a pkg's validity? Installer packages use their own unique signing machinery. AFAIK there’s no API to check package signatures. The only good option I can see is to invoke pkgutil. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Privacy & Security SubTopic: General Tags:
Apr ’22
Reply to Failed to sign PKG Installer
It looks like you’ve notarised your app but not your installer package. That’s going to be a problem because Gatekeeper requires that installer packages be notarised. Rather than notarise twice, our general advice is that you notarise your outermost container; the resulting ticket will cover both your app and your installer package. For more on this, see Signing a Mac Product For Distribution. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: General Tags:
Oct ’21
CoreML Model in Swift Package Tests
I am trying to create some tests inside a swift package that require the a coreML model. I am trying to copy the compiled model into the working bundle, but when I run the tests, the resource is not found using the Bundle.main.url() method. The project also compiles and runs successfully when running command+b. My file structure: My Package.swift: // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: AudioPreprocessingSPM, products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: AudioPreprocessingSPM, targets: [AudioPreprocessingSPM]), ], dependencies: [ // Dependencies declare other packages that this package depends on. // .package(url: /* package url */, from: 1.0.0), ], targets: [ // Targets are the basic building blocks of
2
0
1.8k
Jul ’21
Swift Package and SwiftUI Previews: are PreviewProviders automatically removed when the package is compiled?
When using SwiftUI Previews in a Swift Packages, are PreviewProviders automatically removed from the package when archiving an app, as it is the case with a app, or not? If not, how to deal with that? I’m not sure we can use compiler directives like if DEBUG in packages, can we?
0
0
946
Feb ’23
How to use Swift Package Manager's binaryTarget?
I'm trying to use Swift Package Manager's binaryTarget to include the Stripe xcframework available here https://github.com/stripe/stripe-ios/releases/tag/v19.3.0. The package manager doesn't complain, and lets me link to it, but I can't import it in my files. I've made a sample repo to show it here https://github.com/martyu/StripePackageTest. Am I missing something?
0
0
386
Jul ’20
Failed to notarize a "distribution" pkg
I believe that this is related to the post https://developer.apple.com/forums/thread/790880. I essentially have the same problem that they did. I submit my Distribution PKG for notarization but the notarization fails and when I attempt to install the PKG user the UI I get a External component packages (3) trustLevel=0 (trust evaluation failed; treating as invalid due to higher trust level for parent product archive) However if I install using sudo installer -verboseR -pkg ConcealDistribution.pkg -target / everything works as expected. The difference between me and the other post is that when I expand my PKG using pkgutil --expand I do not have a Resources folder within my top level distribution. Instead my structure looks like ConcealDistribution ├── Distribution ├── ConcealConnect.pkg ├── ConcealBrowse.pkg └── ConcealUpdate.pkg The specific notary service errors I receive are as follows { logFormatVersion: 1, jobId: 7e30e3fd-1739-497c-a02e-64fbe357221d, s
1
0
242
Oct ’25
Reply to Impossible to notarize my .pkg ? Product sign: error: Could not find appropriate signing identity for "Developer ID Installer: **** (******)"
Yes, with your command I find my certificate in valid identities but I can't, already, signed my package (the .pkg's file) with this certificate. How I can do this ? I used this command : productsign --sign Developer ID Installer: Name_of_developer_ID (Number_of_DeveloperID) name_uncertfied.pkg name_certified.pkg and I have this answer : Product sign: error: Could not find appropriate signing identity for Developer ID Installer: (**) Thanks for your help.
May ’21
Reply to Large files in PKGs woes
Ok I figured it out. I still haven't checked the AppStore process but at least all checks pass now It's MUCH more complex than product build, but product build itself is buggy. So. Prepare your .app with HUUUGE file (> 8Gb). Sign it correctly, do everything as usual! pkgbuild --identifier --large-payload --compression latest --min-os-version 12.4 --root .pkg Make the following 'Distribution' file MY com.XXX.pkg productbuild --sign Signer --distribution ./Distribution --package-path ~ Final.pkg Something like that Your package definitely will be 1) compressed fine 2) smaller 3) with super large file Feed the stuff to the Transporter. Don't forget to adjust Distribution with correct version, id's etc. Have fun! I certainly had it
Jun ’23
Reply to Crash with Progress type, Swift 6, iOS 18
I've got the same basic project that I extracted to try to get a reproducer. I also setup unit tests with both Swift Testing and XCTest (we mostly see this issue in our test environment). Unfortunately, I have not been able to reproduce it outside of our codebase. Our code is in a Swift Package, so one thing that I haven't tried is breaking out this reproducible code into a package and making that package a dependency of an app. There is no practical difference I can identify between the code we have tried to reproduce the crash and our production code.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’24
Reply to MacOS application: How to become an identified developer?
Did you really notarise the app, then build the package? Did you then sign and notarise the package? That’s required. If the user opens an unsigned or unnotarised package, you’ll see exactly this error. In general we recommend that you sign everything, from the inside out, and then only notarise the outermost container. For more advice this subject, see my Signing a Mac Product For Distribution - https://forums.developer.apple.com/thread/128166. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @apple.com
Topic: Code Signing SubTopic: General Tags:
Aug ’20
Add Swift Package in Xcode
Hi, Overview I would like to add a Swift Package to my Xcode project. Problem In Xcode when I select Project > Package Dependencies and Press + button to add a dependency it keeps spinning and doesn't end Points to note: Xcode 26.5 (17F42) macOS 26.5 (25F71) This is a private GitHub repository I am able to clone the Swift Package URL on the command line. Xcode has the GitHub account I am able to push and pull code on that GitHub account using Xcode My failed attempt rm -rf ~/Library/Developer/Xcode/DerivedData rm -rf ~/Library/Caches/org.swift.swiftpm plutil -remove IDESwiftPackageAdditionAssistantRecentlyUsedPackages ~/Library/Preferences/com.apple.dt.Xcode.plist I have removed GitHub account in Xcode and added it again I am confused if I am missing something very obvious, any help on this is much appreciated. Questions Is there any workaround or way to fix this issue? Why does this take such a long time when I have a specific URL, either it needs to add it or return th
2
0
301
May ’26
how to create xcframework from swift package which has binaryTarget
I am a new developer for iOS. I have a swift package with three modules (A, B, C). A is the product Module A is written in Swift, module B is in objective C, module C is binary target. B is A's dependency, C is B's dependency. How to create xcframework to release as SDK for this swift package? Thanks a lot. Here is the package.swift: let package = Package( name: A, platforms: [.iOS(.v14), .macOS(.v11)], products: [ .library( name: A, targets: [A] ) ], dependencies: [ // .package(url: /* package url */, from: 1.0.0), ], targets: [ .target( name: A, dependencies: [B] ), .target( name: B, dependencies: [C], publicHeadersPath: include ), .binaryTarget( name: c, url: url, checksum: checksum ), .testTarget( name: ATests, dependencies: [A] ) ], cxxLanguageStandard: .cxx11
0
0
598
Sep ’23
Reply to No webhook is being created for remote package stored on Bitbucket
Somehow the missing webhook for one of the packages just showed up one day. I'm not sure what triggered it, or if it was just a delay of sorts, but this setup is working now.
Replies
Boosts
Views
Activity
Aug ’24
Reply to SMJobBless privileged helpers and granting permission
One of the operations my helper is doing that needs Full Disk Access is downloading a pkg and checking it is signed. I don’t really understand this. If your helper is downloading the file, it should put it in a place that doesn’t require Full Disk Access. Did I miss something in the security api, should I be able to look at a pkg's validity? Installer packages use their own unique signing machinery. AFAIK there’s no API to check package signatures. The only good option I can see is to invoke pkgutil. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to Failed to sign PKG Installer
It looks like you’ve notarised your app but not your installer package. That’s going to be a problem because Gatekeeper requires that installer packages be notarised. Rather than notarise twice, our general advice is that you notarise your outermost container; the resulting ticket will cover both your app and your installer package. For more on this, see Signing a Mac Product For Distribution. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’21
CoreML Model in Swift Package Tests
I am trying to create some tests inside a swift package that require the a coreML model. I am trying to copy the compiled model into the working bundle, but when I run the tests, the resource is not found using the Bundle.main.url() method. The project also compiles and runs successfully when running command+b. My file structure: My Package.swift: // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: AudioPreprocessingSPM, products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: AudioPreprocessingSPM, targets: [AudioPreprocessingSPM]), ], dependencies: [ // Dependencies declare other packages that this package depends on. // .package(url: /* package url */, from: 1.0.0), ], targets: [ // Targets are the basic building blocks of
Replies
2
Boosts
0
Views
1.8k
Activity
Jul ’21
Swift Package and SwiftUI Previews: are PreviewProviders automatically removed when the package is compiled?
When using SwiftUI Previews in a Swift Packages, are PreviewProviders automatically removed from the package when archiving an app, as it is the case with a app, or not? If not, how to deal with that? I’m not sure we can use compiler directives like if DEBUG in packages, can we?
Replies
0
Boosts
0
Views
946
Activity
Feb ’23
Swift Package Manager - how to add package to an existing Xcode project
I decided to add a package to my existing Xcode project. Unfortunately there is a lot of information how to create a package and just a few lines how to use/add one. So if anyone knows how to add it, what to do and not to destroy my current project, please share your experience.
Replies
0
Boosts
0
Views
882
Activity
Nov ’18
How to use Swift Package Manager's binaryTarget?
I'm trying to use Swift Package Manager's binaryTarget to include the Stripe xcframework available here https://github.com/stripe/stripe-ios/releases/tag/v19.3.0. The package manager doesn't complain, and lets me link to it, but I can't import it in my files. I've made a sample repo to show it here https://github.com/martyu/StripePackageTest. Am I missing something?
Replies
0
Boosts
0
Views
386
Activity
Jul ’20
Failed to notarize a "distribution" pkg
I believe that this is related to the post https://developer.apple.com/forums/thread/790880. I essentially have the same problem that they did. I submit my Distribution PKG for notarization but the notarization fails and when I attempt to install the PKG user the UI I get a External component packages (3) trustLevel=0 (trust evaluation failed; treating as invalid due to higher trust level for parent product archive) However if I install using sudo installer -verboseR -pkg ConcealDistribution.pkg -target / everything works as expected. The difference between me and the other post is that when I expand my PKG using pkgutil --expand I do not have a Resources folder within my top level distribution. Instead my structure looks like ConcealDistribution ├── Distribution ├── ConcealConnect.pkg ├── ConcealBrowse.pkg └── ConcealUpdate.pkg The specific notary service errors I receive are as follows { logFormatVersion: 1, jobId: 7e30e3fd-1739-497c-a02e-64fbe357221d, s
Replies
1
Boosts
0
Views
242
Activity
Oct ’25
Loading resources from SPM Package
Hi, I have a SPM Library where I add some resources. But I can't load them within the package because I got this error. Type 'Bundle' has no member 'module' Am I missing something ? I'm using Xcode 12. I add the ressource this way in the Package.swift file tt.target( tttname: MyPackage, tttresources: [.copy(Mocks)] tt),
Replies
5
Boosts
0
Views
8.4k
Activity
Jun ’20
Reply to Impossible to notarize my .pkg ? Product sign: error: Could not find appropriate signing identity for "Developer ID Installer: **** (******)"
Yes, with your command I find my certificate in valid identities but I can't, already, signed my package (the .pkg's file) with this certificate. How I can do this ? I used this command : productsign --sign Developer ID Installer: Name_of_developer_ID (Number_of_DeveloperID) name_uncertfied.pkg name_certified.pkg and I have this answer : Product sign: error: Could not find appropriate signing identity for Developer ID Installer: (**) Thanks for your help.
Replies
Boosts
Views
Activity
May ’21
Reply to Large files in PKGs woes
Ok I figured it out. I still haven't checked the AppStore process but at least all checks pass now It's MUCH more complex than product build, but product build itself is buggy. So. Prepare your .app with HUUUGE file (> 8Gb). Sign it correctly, do everything as usual! pkgbuild --identifier --large-payload --compression latest --min-os-version 12.4 --root .pkg Make the following 'Distribution' file MY com.XXX.pkg productbuild --sign Signer --distribution ./Distribution --package-path ~ Final.pkg Something like that Your package definitely will be 1) compressed fine 2) smaller 3) with super large file Feed the stuff to the Transporter. Don't forget to adjust Distribution with correct version, id's etc. Have fun! I certainly had it
Replies
Boosts
Views
Activity
Jun ’23
Reply to Crash with Progress type, Swift 6, iOS 18
I've got the same basic project that I extracted to try to get a reproducer. I also setup unit tests with both Swift Testing and XCTest (we mostly see this issue in our test environment). Unfortunately, I have not been able to reproduce it outside of our codebase. Our code is in a Swift Package, so one thing that I haven't tried is breaking out this reproducible code into a package and making that package a dependency of an app. There is no practical difference I can identify between the code we have tried to reproduce the crash and our production code.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to MacOS application: How to become an identified developer?
Did you really notarise the app, then build the package? Did you then sign and notarise the package? That’s required. If the user opens an unsigned or unnotarised package, you’ll see exactly this error. In general we recommend that you sign everything, from the inside out, and then only notarise the outermost container. For more advice this subject, see my Signing a Mac Product For Distribution - https://forums.developer.apple.com/thread/128166. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @apple.com
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’20
Add Swift Package in Xcode
Hi, Overview I would like to add a Swift Package to my Xcode project. Problem In Xcode when I select Project > Package Dependencies and Press + button to add a dependency it keeps spinning and doesn't end Points to note: Xcode 26.5 (17F42) macOS 26.5 (25F71) This is a private GitHub repository I am able to clone the Swift Package URL on the command line. Xcode has the GitHub account I am able to push and pull code on that GitHub account using Xcode My failed attempt rm -rf ~/Library/Developer/Xcode/DerivedData rm -rf ~/Library/Caches/org.swift.swiftpm plutil -remove IDESwiftPackageAdditionAssistantRecentlyUsedPackages ~/Library/Preferences/com.apple.dt.Xcode.plist I have removed GitHub account in Xcode and added it again I am confused if I am missing something very obvious, any help on this is much appreciated. Questions Is there any workaround or way to fix this issue? Why does this take such a long time when I have a specific URL, either it needs to add it or return th
Replies
2
Boosts
0
Views
301
Activity
May ’26
how to create xcframework from swift package which has binaryTarget
I am a new developer for iOS. I have a swift package with three modules (A, B, C). A is the product Module A is written in Swift, module B is in objective C, module C is binary target. B is A's dependency, C is B's dependency. How to create xcframework to release as SDK for this swift package? Thanks a lot. Here is the package.swift: let package = Package( name: A, platforms: [.iOS(.v14), .macOS(.v11)], products: [ .library( name: A, targets: [A] ) ], dependencies: [ // .package(url: /* package url */, from: 1.0.0), ], targets: [ .target( name: A, dependencies: [B] ), .target( name: B, dependencies: [C], publicHeadersPath: include ), .binaryTarget( name: c, url: url, checksum: checksum ), .testTarget( name: ATests, dependencies: [A] ) ], cxxLanguageStandard: .cxx11
Replies
0
Boosts
0
Views
598
Activity
Sep ’23