Search results for

“missing package product”

55,551 results found

Post

Replies

Boosts

Views

Activity

Notarizing a flat package?
Hi,I'm having some trouble notarizing a package with a single app bundle in it. The application is actually a binary that is run as a LaunchDaemon as root. Originally our package installer just deployed two Mach-O binaries (executable and a dylib) to a directory along with the LaunchDaemon plist.With notarization requiring an App Bundle, we've moved our two Mach-O binaries to the required App Bundle structure and successfully signed & notarized the App Bundle itself. A side note - we're not working with a typical Xcode setup. The binary is written in Rust and we're signing/notarizing manually with automation.However, now that I'm attempting to build the flat PKG installer with the App Bundle, we're failing notarization for a reason that doesn't really make sense. The error we're getting from the notarization service is:{ logFormatVersion: 1, jobId: 91ca9fc8-50b4-4008-b691-xxxxxxx, status: Invalid, statusSummary: Archive contains critical validation errors, statusCode: 4000, arch
6
0
5.6k
Apr ’19
Reply to ITMS-90238: Invalid Signature - The main app bundle Tren at path Tren.app has following signing error(s): a sealed resource is missing or invalid
Ignore the second error for the moment. You’ll need to fix the first error before you can tell whether it’s relevant. My standard practice for debugging such problems is: Choose Product > Archive to build an Xcode archive for your product. Use the Xcode organiser to upload that to App Store Connect. Confirm that you get the same error. Use the Xcode organiser to export an App Store compatible installer package (.pkg). Use Transporter to upload that to App Store Connect. Confirm that you get the same error. Now that you’ve confirmed that the installer package accurately reflects the problem, extract your app from that installer package [1]. Use codesign to check its signature: % codesign -d -vvv --deep --strict /path/to/your.app Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] I use a third-party app for this, but you can do it from the command line using the techniques shown in Unpa
Topic: Code Signing SubTopic: General Tags:
Apr ’24
Reply to When to notarize artifacts developed in different stages?
My general advice is that you sign and package your code from the inside out, and then notarise the final product. There are situations where it makes sense to deviate from that path, but in most cases it’s the best path forward. For general advice on signing and packaging, see: Creating distribution-signed code for macOS Packaging Mac software for distribution For lots of links to notarisation documentation, forums posts, and whatever, see Notarisation Resources. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: Notarization Tags:
May ’25
Terminal command for XCode->File->Packages->Reset Package Cache
I am using XCode 13.1 and wondering a way to execute XCode->File->Packages->Reset Package Cache on terminal. I see my CI machine is failing every time not for specific package but some random package. And when manually do XCode->File->Packages->Reset Package Cache, it resolves the package graph properly. I already tried clearing DerivedData and also clearing /Users/bostonsamddv/Library/Caches/org.swift.swiftpm with no luck :( Any help will be appreciated.
1
0
2.8k
Oct ’21
Large files in PKGs woes
Dear colleagues No matter how hard I try I can’t get large files ~20Gb to be processed correctly by the productbuild At least that’s what I think. I use —large-payload option Product build actively complains with warnings about 12,0 as min version of macOS. The issue here is that in app plist 12.4 is set as min version. PRE-INSTALL REQUIREMENTS PROPERTY LIST should apparently be used for this but no possible combo of options can fix this warning. The warning have far reaching consequences. More on this later All the utilities even Apple ones like Trandporter unpack the pkg absolutely wrong. When I check temporary expanded archive my 20gb file turns into 8Gb! i still have to check installer way whether it unpacks correctly. AppStore submission immediately rejects the pkg because lsmin key is 12.4 while package min is 12.0. The thing is I never ever used 12.0 anywhere. so to summarize. Cant submit large payloads archive Can’t extract it either what to do ? Best regards
3
0
1.3k
Jun ’23
Completion in Swift packages
I have a Swift Package that builds both an AppKit and a UIKit library, and code completion works great for AppKit code, but does not work in any of the UIKit files - regardless of the target selected on the top of the IDE.This Swift Package in turn is consumed by an AppKit sample, and a UIKit sample, code completion works just fine on both of those projects. It is just the shared Swift Package that fails to work with iOS APIs.I have tried removing mac as a platform in `Package.swift`, and wiping out my DerivedData for the project, but it does not make a difference, completion still is completely busted for code living inside the Swift Package.The code is open source, under the MIT license, if anyone wants to look at the setup:https://github.com/migueldeicaza/SwiftTerm
0
0
641
Apr ’20
Certificate Missing Required Extension
I'm not much of a Developer, but I use my developer account as a Mac Admin to sign packages and mobileconfig profiles for distribution via JAMF. I've had no problems until recently.I went to sign a mobileconfig like I always do I can get an error saying: errSecInternalComponentor I get this if I try to sign from the command line using the product sign command: productsign: error: Can't read input product archive /Users/myuser/Desktop/TEST.mobileconfigWhen I run this: security find-identity -vp macappstoreThis is the what is returned 1) 111111111111111111abcdefghijklmnop Developer ID Installer: My Name (blah0011112) (Missing required extension)In fact all of my developer ID certs return that (Missing required extension) message nowI assume this has something to do with my inability to sign mobileconfigs, but i'm totally stuck.I've created a whole new keychain, issued a new certificate, nothing works. Any ideas?
2
0
1.1k
May ’20
Create Swift Package with 3rd party dependencies
I am trying to create a Swift Package for a custom framework I'm building for a client. The framework has a dependency on a couple of 3rd party frameworks. I've read about how even though binary frameworks don't support dependencies directly, there is way to do this with a 'wrapper' target, so this is what I came up with for Package.swift: let package = Package( name: SBCardScannerFramework, platforms: [ .iOS(.v16) ], products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: SBCardScannerFramework, targets: [SBCardScannerFramework-Target]), ], dependencies: [ // Dependencies declare other packages that this package depends on. .package(url: https://github.com/apple/swift-algorithms.git, from: 1.0.0), .package(url: https://github.com/marmelroy/PhoneNumberKit.git, from: 3.3.3) ], targets: [ .target(name: SBCardScannerFramework-Target,
0
0
1.4k
May ’23
Issue with using Swift package with xcframework binaryTarget
Hi! I'm trying to create a target application that depends on multiple targets that all use the same Swift package that has xcframework binaryTarget. Each component can be successfully assembled individually, but when I try to create a core application that depends on these components, I get an error message on Prepare build stage: Multiple commands produce '/Users//Library/Developer/Xcode/DerivedData//Build/Products/Debug/Frameworks/.framework/Versions/A' Target '' has copy command from '/Users//Library/Developer/Xcode/DerivedData//SourcePackages/artifacts/...//.xcframework/macos-arm64_x86_64/.framework' to '/Users//Library/Developer/Xcode/DerivedData//Build/Products/Debug/Frameworks/.framework' Target '' has copy command from '/Users//Library/Developer/Xcode/DerivedData//SourcePackages/artifacts/...//.xcframework/macos-arm64_x86_64/.framework' to '/Users//Library/Developer/Xcode/DerivedData//Build/Products/Debug/Frameworks/.framework' – where is a name of the xcframework
0
0
436
Nov ’24
Production review failed because IAP products cannot be loaded
My app has a couple of consumable IAP items. I have tested this extensively and it works in all test scenarios including loads of beta testers using testflight. However, Apple's production reviewer reports that loading of the products hangs in their setup. This is very frustrating as I have no means of recreating the problem. My first product was tested ok an all my IAP items are approved for release. However, I did not explicitly assign them to my build. I read somewhere that you need to do that but could not find in App Store Connect after my first product was approved. Below is the relevant code section. What am I missing? class DonationManager: NSObject, ObservableObject, SKProductsRequestDelegate, SKPaymentTransactionObserver { @Published var products: [SKProduct] = [] // This is observed by a view. But apparently that view never gets populated in Apple's production review setup @Published var isPurchasing: Bool = false @Published var purchas
2
0
263
Jul ’25
What is "Package Power" in Powermetrics?
I am using powermetrics to collect the cpu_power information. I have a small command-line utility that uses some blas functions in Accelerate and I'd like to quantify the energy consumption of the algorithm. My workflow is to start powermetrics, wait 1 second, start my program, and then stop powermetrics. During that 1 second waiting period, Package Power is: If GPU power is 0, Package power is exactly equal to CPU power even though DRAM power is not 0 If GPU power is not 0, Package power is usually (but not always) equal to CPU + GPU power even though DRAM power is not 0 When my algorithm is running, Package power is sometimes greater than the sum of everything else, but sometimes not. I've tried using powermetrics with other programs and am seeing similar results. It appears that whatever Package Power means, it does not include DRAM Power. The man page doesn't have any information, and other internet searches turn up empty or are definitely wrong. Using blas fun
1
0
1.9k
Jun ’22
Download IAP .pkgs from Apple’s servers?
I’m updating an old app which uses StoreKit and hosted in-app purchases (multimedia add-ons). The original .pkgs are missing and the only known place they exist intact is on Apple’s servers. The app is able to download and install the IAPs. Is there anyway to save them to the local device?
Replies
0
Boosts
0
Views
380
Activity
Dec ’24
Notarizing a flat package?
Hi,I'm having some trouble notarizing a package with a single app bundle in it. The application is actually a binary that is run as a LaunchDaemon as root. Originally our package installer just deployed two Mach-O binaries (executable and a dylib) to a directory along with the LaunchDaemon plist.With notarization requiring an App Bundle, we've moved our two Mach-O binaries to the required App Bundle structure and successfully signed & notarized the App Bundle itself. A side note - we're not working with a typical Xcode setup. The binary is written in Rust and we're signing/notarizing manually with automation.However, now that I'm attempting to build the flat PKG installer with the App Bundle, we're failing notarization for a reason that doesn't really make sense. The error we're getting from the notarization service is:{ logFormatVersion: 1, jobId: 91ca9fc8-50b4-4008-b691-xxxxxxx, status: Invalid, statusSummary: Archive contains critical validation errors, statusCode: 4000, arch
Replies
6
Boosts
0
Views
5.6k
Activity
Apr ’19
Reply to ITMS-90238: Invalid Signature - The main app bundle Tren at path Tren.app has following signing error(s): a sealed resource is missing or invalid
Ignore the second error for the moment. You’ll need to fix the first error before you can tell whether it’s relevant. My standard practice for debugging such problems is: Choose Product > Archive to build an Xcode archive for your product. Use the Xcode organiser to upload that to App Store Connect. Confirm that you get the same error. Use the Xcode organiser to export an App Store compatible installer package (.pkg). Use Transporter to upload that to App Store Connect. Confirm that you get the same error. Now that you’ve confirmed that the installer package accurately reflects the problem, extract your app from that installer package [1]. Use codesign to check its signature: % codesign -d -vvv --deep --strict /path/to/your.app Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] I use a third-party app for this, but you can do it from the command line using the techniques shown in Unpa
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to When to notarize artifacts developed in different stages?
My general advice is that you sign and package your code from the inside out, and then notarise the final product. There are situations where it makes sense to deviate from that path, but in most cases it’s the best path forward. For general advice on signing and packaging, see: Creating distribution-signed code for macOS Packaging Mac software for distribution For lots of links to notarisation documentation, forums posts, and whatever, see Notarisation Resources. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: Notarization Tags:
Replies
Boosts
Views
Activity
May ’25
Terminal command for XCode->File->Packages->Reset Package Cache
I am using XCode 13.1 and wondering a way to execute XCode->File->Packages->Reset Package Cache on terminal. I see my CI machine is failing every time not for specific package but some random package. And when manually do XCode->File->Packages->Reset Package Cache, it resolves the package graph properly. I already tried clearing DerivedData and also clearing /Users/bostonsamddv/Library/Caches/org.swift.swiftpm with no luck :( Any help will be appreciated.
Replies
1
Boosts
0
Views
2.8k
Activity
Oct ’21
Large files in PKGs woes
Dear colleagues No matter how hard I try I can’t get large files ~20Gb to be processed correctly by the productbuild At least that’s what I think. I use —large-payload option Product build actively complains with warnings about 12,0 as min version of macOS. The issue here is that in app plist 12.4 is set as min version. PRE-INSTALL REQUIREMENTS PROPERTY LIST should apparently be used for this but no possible combo of options can fix this warning. The warning have far reaching consequences. More on this later All the utilities even Apple ones like Trandporter unpack the pkg absolutely wrong. When I check temporary expanded archive my 20gb file turns into 8Gb! i still have to check installer way whether it unpacks correctly. AppStore submission immediately rejects the pkg because lsmin key is 12.4 while package min is 12.0. The thing is I never ever used 12.0 anywhere. so to summarize. Cant submit large payloads archive Can’t extract it either what to do ? Best regards
Replies
3
Boosts
0
Views
1.3k
Activity
Jun ’23
Completion in Swift packages
I have a Swift Package that builds both an AppKit and a UIKit library, and code completion works great for AppKit code, but does not work in any of the UIKit files - regardless of the target selected on the top of the IDE.This Swift Package in turn is consumed by an AppKit sample, and a UIKit sample, code completion works just fine on both of those projects. It is just the shared Swift Package that fails to work with iOS APIs.I have tried removing mac as a platform in `Package.swift`, and wiping out my DerivedData for the project, but it does not make a difference, completion still is completely busted for code living inside the Swift Package.The code is open source, under the MIT license, if anyone wants to look at the setup:https://github.com/migueldeicaza/SwiftTerm
Replies
0
Boosts
0
Views
641
Activity
Apr ’20
Certificate Missing Required Extension
I'm not much of a Developer, but I use my developer account as a Mac Admin to sign packages and mobileconfig profiles for distribution via JAMF. I've had no problems until recently.I went to sign a mobileconfig like I always do I can get an error saying: errSecInternalComponentor I get this if I try to sign from the command line using the product sign command: productsign: error: Can't read input product archive /Users/myuser/Desktop/TEST.mobileconfigWhen I run this: security find-identity -vp macappstoreThis is the what is returned 1) 111111111111111111abcdefghijklmnop Developer ID Installer: My Name (blah0011112) (Missing required extension)In fact all of my developer ID certs return that (Missing required extension) message nowI assume this has something to do with my inability to sign mobileconfigs, but i'm totally stuck.I've created a whole new keychain, issued a new certificate, nothing works. Any ideas?
Replies
2
Boosts
0
Views
1.1k
Activity
May ’20
Create Swift Package with 3rd party dependencies
I am trying to create a Swift Package for a custom framework I'm building for a client. The framework has a dependency on a couple of 3rd party frameworks. I've read about how even though binary frameworks don't support dependencies directly, there is way to do this with a 'wrapper' target, so this is what I came up with for Package.swift: let package = Package( name: SBCardScannerFramework, platforms: [ .iOS(.v16) ], products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: SBCardScannerFramework, targets: [SBCardScannerFramework-Target]), ], dependencies: [ // Dependencies declare other packages that this package depends on. .package(url: https://github.com/apple/swift-algorithms.git, from: 1.0.0), .package(url: https://github.com/marmelroy/PhoneNumberKit.git, from: 3.3.3) ], targets: [ .target(name: SBCardScannerFramework-Target,
Replies
0
Boosts
0
Views
1.4k
Activity
May ’23
Issue with using Swift package with xcframework binaryTarget
Hi! I'm trying to create a target application that depends on multiple targets that all use the same Swift package that has xcframework binaryTarget. Each component can be successfully assembled individually, but when I try to create a core application that depends on these components, I get an error message on Prepare build stage: Multiple commands produce '/Users//Library/Developer/Xcode/DerivedData//Build/Products/Debug/Frameworks/.framework/Versions/A' Target '' has copy command from '/Users//Library/Developer/Xcode/DerivedData//SourcePackages/artifacts/...//.xcframework/macos-arm64_x86_64/.framework' to '/Users//Library/Developer/Xcode/DerivedData//Build/Products/Debug/Frameworks/.framework' Target '' has copy command from '/Users//Library/Developer/Xcode/DerivedData//SourcePackages/artifacts/...//.xcframework/macos-arm64_x86_64/.framework' to '/Users//Library/Developer/Xcode/DerivedData//Build/Products/Debug/Frameworks/.framework' – where is a name of the xcframework
Replies
0
Boosts
0
Views
436
Activity
Nov ’24
Production review failed because IAP products cannot be loaded
My app has a couple of consumable IAP items. I have tested this extensively and it works in all test scenarios including loads of beta testers using testflight. However, Apple's production reviewer reports that loading of the products hangs in their setup. This is very frustrating as I have no means of recreating the problem. My first product was tested ok an all my IAP items are approved for release. However, I did not explicitly assign them to my build. I read somewhere that you need to do that but could not find in App Store Connect after my first product was approved. Below is the relevant code section. What am I missing? class DonationManager: NSObject, ObservableObject, SKProductsRequestDelegate, SKPaymentTransactionObserver { @Published var products: [SKProduct] = [] // This is observed by a view. But apparently that view never gets populated in Apple's production review setup @Published var isPurchasing: Bool = false @Published var purchas
Replies
2
Boosts
0
Views
263
Activity
Jul ’25
Reply to First install impressions?
Seems pretty nice, except Java 6 is broken or missing and I can't reinstall it. Error below:Java for OS X 2014-001 can't be installed on this disk. A newer version of this package is already installed.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to Xcode unsupported iOS version after beta update 14.5 error 18e5140k
I have looked all over for contents/Developer/platform/iPhoneOS.platform/DeviceSupport but I just cannot find it on my Macbook. Is there some trick I am missing ? Thanks Update - Found it. Right Click on the xcode.app and select View Package Contents.
Replies
Boosts
Views
Activity
Mar ’23
What is "Package Power" in Powermetrics?
I am using powermetrics to collect the cpu_power information. I have a small command-line utility that uses some blas functions in Accelerate and I'd like to quantify the energy consumption of the algorithm. My workflow is to start powermetrics, wait 1 second, start my program, and then stop powermetrics. During that 1 second waiting period, Package Power is: If GPU power is 0, Package power is exactly equal to CPU power even though DRAM power is not 0 If GPU power is not 0, Package power is usually (but not always) equal to CPU + GPU power even though DRAM power is not 0 When my algorithm is running, Package power is sometimes greater than the sum of everything else, but sometimes not. I've tried using powermetrics with other programs and am seeing similar results. It appears that whatever Package Power means, it does not include DRAM Power. The man page doesn't have any information, and other internet searches turn up empty or are definitely wrong. Using blas fun
Replies
1
Boosts
0
Views
1.9k
Activity
Jun ’22
Reply to making USB-C accessory for Apple TV
I thought the main reason to join was to be able to use the made for iPhone etc. logos on your hardware product packaging. If you don't need / want that then I suspect you wouldn't need to join.Disclaimer: I have no experience with hardware development like that myself.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’15