Search results for

“missing package product”

52,932 results found

Post

Replies

Boosts

Views

Activity

SKProductRequest return 0 product with production-signed app
Hi,I have an iOS application which uses in-app purchases.I have already set the environment for IAP:Set all the Agreements Tax and Banking sections,Created IAP products on iTunes connectTurned on In app purchases in the capabilities tabImplemented my code to retrieve the product list and to perform a purchase validating the receipt server-sideI have also tested all with a sandbox environment and all works as expected: the list of products is correctly received by the store I can purchase a product validating the corresponding receipt.I have also tested the application using Testflight which creates automatically a sandbox user for all testers and all works as expected.I submitted my application to the Apple store and the revision has been passed so that at the moment the application is in Pending Developer Release status, all the products have been approved.In order to try an actual purchase (using a real credit card) I have generated a promo code with iTunes conne
2
0
1.6k
Nov ’18
Reply to CoreData: Failed to load optimized model
Somehow i have fixed it myself.It is just a message logs at console. It won't crash or warn you. But whenever you try profiling through instruments, the app gets crash the moment you receive this message. So,Follow these steps to resolve:1. Go to products group in your project file navigator and select your product then choose show in finder2. Select your product-name.app and then choose show package contents3. Now you will see your proudct-name.momd folder. Open it there you will see your product-name.omo4. Delete that and run the project again5. And it works you won't see any log message in the console nowMake sure you are not deleting any .mom files
Nov ’17
Failing in Notarization a pkg file
I have a flattened pkg file to notarize. It is signed at the build time by the Developer ID installer. Here is the output of a series of commands. check notarization status submit notarization and status check tatus of notarization after notarization complete. mtnview@C02YC2G0JGH5 ~/D/s/d/h/c/pkgs>spctl -a -vvv -t install ./foo.mac11.x86_64.pkg ./foo.mac11.x86_64.pkg: rejected source=Unnotarized Developer ID origin=Developer ID Installer: foo, Inc. (69Q4FM6AL9) mtnview@C02YC2G0JGH5 ~/D/s/d/h/c/pkgs> xcrun notarytool submit ./foo.mac11.x86_64.pkg --keychain-profile AC_PASSWORD --wait Conducting pre-submission checks for foo.mac11.x86_64.pkg and initiating connection to the Apple notary service... Submission ID received id: cc2d06be-fb07-4794-a92a-996ac07985fd Successfully uploaded file id: cc2d06be-fb07-4794-a92a-996ac07985fd path: /Users/mtnview/Documents/shared_vm/dev/hawkeye/cmake-macos/pkgs/foo.mac11.x86_64.pkg Waiting f
5
0
1.4k
Mar ’22
Xcode Export Localizations for an iOS app using Swift Package Manager packages fails: No such module UIKit
I'm building an iOS app (the supported destinations in the app target are iOS, iPad and Mac - Designed for iPad). I've many SPM frameworks in order to split my codebase in different features. I want to export the localisations for the different packages and the app using Xcode but it fails. I followed the Apple guide regarding SPM localization: the packages contains a Resources folder with a folder for each language supported. I specified the platforms .iOS(.v16) in the packages. But it seems that exporting the localisations using the Product > Export Localizations feature in Xcode compiles also the packages and app for macOS. Here is the error message: Showing Recent Messages /Users/axel/Developer/AppName/Packages/Helpers/Sources/Helpers/UIKit/UIImage+Extension.swift:7:14: No such module 'UIKit' /Users/axel/Developer/AppName/Packages/Helpers/Sources/Helpers/UIKit/UIImage+Extension.swift:7:14: UIKit is not available when building for macOS. Con
2
0
2.3k
Feb ’23
Reply to Notarization Issues
Might also be worth noting that these aren't being natively built in xcode, but rather cross compiled via golang's compiler on a linux machine My experience is that Go binaries often have problems with code signing, primarily, because Go does not use the Apple linker [1]. We sign them and notarize (but can't staple because they aren't apps). Understood. But you can and should staple the installer package. My advice here is that you sign all your binaries, from the inside out, and then bundle them up into an installer package, sign that, notarise the installer package, and then finally staple that package. The resulting ticket will cover the installer package and all the binaries it contains. It will be ingested by the system at install time, so it’ll be available when the user goes to run one of your executables. For more details on each step, see Signing a Mac Product For Distribution. For advice on how to test this stuff, see Testing a Notarised Product
Topic: Code Signing SubTopic: General Tags:
Feb ’22
Package installer requires Rosetta?
I have a package installer for my .app created with a sequence of commands (pkgbuild, productbuild, xcrun notarytool, xcrun stapler). When this installer is run on a pristine machine, the user is prompted to install Rosetta first before being able to run the installer. Is this expected behavior? Or am I creating the .pkg incorrectly?
0
0
461
Jan ’24
How to: Previews in Swift Package?
How do you get previews working in a swift package? This talk shows this working, however the following steps do not work. Using Xcode 12 create a new Swift Package Add a simple view with a preview to that swift package (See code below) Attempt to run the preview. See errors Code: #if os(iOS) import SwiftUI @available(iOS 14.0, *) public struct TestView: View { public init() { } public var body: some View { Text(Hello World) } } @available(iOS 14.0, *) struct NoDataView_Previews: PreviewProvider { static var previews: some View { TestView() } } #endif Error: Build input file cannot be found:...TestPackagePreview.o' (in targ SchemeBuildError: Failed to build the scheme TestPackagePreview Build input file cannot be found: ...TestPackagePreview.o' (in target 'TestPackagePreviewTests' from project 'TestPackagePreview' Link TestPackagePreviewTests (x86_64): error: Build input file cannot be found: ...TestPackagePreview.o' (in target 'TestPackagePreviewTests' from project 'TestPackagePrev
3
0
5.5k
Jun ’20
ReferenceFileDocument or FileDocument with Package types
I would like to use ReferenceFileDocument or FileDocument but the file type I use is a package type that conforms to com.apple.package. However the FileDocument - https://developer.apple.com/documentation/swiftui/filedocument and ReferenceFileDocument - https://developer.apple.com/documentation/swiftui/referencefiledocument respective write methods are called with a inout FileWrapper. I need this this FileWrapper to be a directory FileWrapper so that i can add child items to it. However the write method is being called with a regularFile instance of the FileWrapper so i am unable to add nested files that I need within my package. My writableContentTypes is UTType(exportedAs: com.example.package, conformingTo: .package). And my Xcode project expires/declares this data type as a package, so that UIDocument/NSDocument work.
1
0
696
Jun ’20
Reply to Problem using test plans with local Swift Packages
I was able to resolve this. As far as I can tell, it's an Xcode bug.The short version is that Xcode seems to assume that at least one test configuration will use the shared (default) test configuration, unmodified. That assumption can of course be wrong; it's possible that no test configuration exactly matches the defaults. The mistake can prevent Xcode from finding the test target bundles for local Swift Packages.The long version...* A test plan has a shared (default) test configuration.* A test plan has one or more actual test configurations.* Xcode places build products in directories whose names are based on their differences from the shared (default) configuration.* The build products for test configurations that don't have any meaningful differences are placed under the root, e.g.: /Products/xxx/....* The build products for test configurations that do have meaningful differences are placed under subirectories whose names are derived from the differences, e.g.: /Products
May ’20
Reply to How to correctly deploy bundled launchdaemons/launchagents?
Lemme take a step back here. ES products typically ship in one of two ways: If they’re consumer focused, they use an ES system extension. If they’re enterprise focused, they use an ES daemon. It sounds like you fall into the latter category. If so, why are you adopting SMAppService? That mechanism is intended for folks shipping consumer focused products. For an ES client that’s targeting enterprise environments it makes sense to stick with an installer package. In short, SMAppService is meant to be a replacement for things like SMJobBless and SMLoginItemSetEnabled, not a replacement for installer packages and launchctl. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Oct ’24
Swift package manager
I have an Xcode project that generates xyz.framework and that framework is used by other teams for their app. Updating the framework is a manual process. So I am planning to covert my xyz.framwork source to swift package manager. I couldn't find any such articles. Please let me know if there is any resource around this topic.
0
0
460
Apr ’21
Reply to I can't submit my app to the app store
Another thing is that if I temporarily move my .app file out of /Applications and run my pkg, it says the installation was sucessful. But no new files are added/installed in /Applications. That suggests that there’s a problem with the way that your installer package is constructed. I signed the pkg with productsign and built it with productbuild. Note You can do this in one step (using productbuild) but doing it in two is not an issue. How are you invoking productbuild? The default command I used for this is in Signing a Mac Product For Distribution - https://developer.apple.com/forums/thread/128166. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Apr ’21
SKProductRequest return 0 product with production-signed app
Hi,I have an iOS application which uses in-app purchases.I have already set the environment for IAP:Set all the Agreements Tax and Banking sections,Created IAP products on iTunes connectTurned on In app purchases in the capabilities tabImplemented my code to retrieve the product list and to perform a purchase validating the receipt server-sideI have also tested all with a sandbox environment and all works as expected: the list of products is correctly received by the store I can purchase a product validating the corresponding receipt.I have also tested the application using Testflight which creates automatically a sandbox user for all testers and all works as expected.I submitted my application to the Apple store and the revision has been passed so that at the moment the application is in Pending Developer Release status, all the products have been approved.In order to try an actual purchase (using a real credit card) I have generated a promo code with iTunes conne
Replies
2
Boosts
0
Views
1.6k
Activity
Nov ’18
Reply to CoreData: Failed to load optimized model
Somehow i have fixed it myself.It is just a message logs at console. It won't crash or warn you. But whenever you try profiling through instruments, the app gets crash the moment you receive this message. So,Follow these steps to resolve:1. Go to products group in your project file navigator and select your product then choose show in finder2. Select your product-name.app and then choose show package contents3. Now you will see your proudct-name.momd folder. Open it there you will see your product-name.omo4. Delete that and run the project again5. And it works you won't see any log message in the console nowMake sure you are not deleting any .mom files
Replies
Boosts
Views
Activity
Nov ’17
Failing in Notarization a pkg file
I have a flattened pkg file to notarize. It is signed at the build time by the Developer ID installer. Here is the output of a series of commands. check notarization status submit notarization and status check tatus of notarization after notarization complete. mtnview@C02YC2G0JGH5 ~/D/s/d/h/c/pkgs>spctl -a -vvv -t install ./foo.mac11.x86_64.pkg ./foo.mac11.x86_64.pkg: rejected source=Unnotarized Developer ID origin=Developer ID Installer: foo, Inc. (69Q4FM6AL9) mtnview@C02YC2G0JGH5 ~/D/s/d/h/c/pkgs> xcrun notarytool submit ./foo.mac11.x86_64.pkg --keychain-profile AC_PASSWORD --wait Conducting pre-submission checks for foo.mac11.x86_64.pkg and initiating connection to the Apple notary service... Submission ID received id: cc2d06be-fb07-4794-a92a-996ac07985fd Successfully uploaded file id: cc2d06be-fb07-4794-a92a-996ac07985fd path: /Users/mtnview/Documents/shared_vm/dev/hawkeye/cmake-macos/pkgs/foo.mac11.x86_64.pkg Waiting f
Replies
5
Boosts
0
Views
1.4k
Activity
Mar ’22
Xcode Export Localizations for an iOS app using Swift Package Manager packages fails: No such module UIKit
I'm building an iOS app (the supported destinations in the app target are iOS, iPad and Mac - Designed for iPad). I've many SPM frameworks in order to split my codebase in different features. I want to export the localisations for the different packages and the app using Xcode but it fails. I followed the Apple guide regarding SPM localization: the packages contains a Resources folder with a folder for each language supported. I specified the platforms .iOS(.v16) in the packages. But it seems that exporting the localisations using the Product > Export Localizations feature in Xcode compiles also the packages and app for macOS. Here is the error message: Showing Recent Messages /Users/axel/Developer/AppName/Packages/Helpers/Sources/Helpers/UIKit/UIImage+Extension.swift:7:14: No such module 'UIKit' /Users/axel/Developer/AppName/Packages/Helpers/Sources/Helpers/UIKit/UIImage+Extension.swift:7:14: UIKit is not available when building for macOS. Con
Replies
2
Boosts
0
Views
2.3k
Activity
Feb ’23
Reply to Notarization Issues
Might also be worth noting that these aren't being natively built in xcode, but rather cross compiled via golang's compiler on a linux machine My experience is that Go binaries often have problems with code signing, primarily, because Go does not use the Apple linker [1]. We sign them and notarize (but can't staple because they aren't apps). Understood. But you can and should staple the installer package. My advice here is that you sign all your binaries, from the inside out, and then bundle them up into an installer package, sign that, notarise the installer package, and then finally staple that package. The resulting ticket will cover the installer package and all the binaries it contains. It will be ingested by the system at install time, so it’ll be available when the user goes to run one of your executables. For more details on each step, see Signing a Mac Product For Distribution. For advice on how to test this stuff, see Testing a Notarised Product
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’22
Package installer requires Rosetta?
I have a package installer for my .app created with a sequence of commands (pkgbuild, productbuild, xcrun notarytool, xcrun stapler). When this installer is run on a pristine machine, the user is prompted to install Rosetta first before being able to run the installer. Is this expected behavior? Or am I creating the .pkg incorrectly?
Replies
0
Boosts
0
Views
461
Activity
Jan ’24
How to: Previews in Swift Package?
How do you get previews working in a swift package? This talk shows this working, however the following steps do not work. Using Xcode 12 create a new Swift Package Add a simple view with a preview to that swift package (See code below) Attempt to run the preview. See errors Code: #if os(iOS) import SwiftUI @available(iOS 14.0, *) public struct TestView: View { public init() { } public var body: some View { Text(Hello World) } } @available(iOS 14.0, *) struct NoDataView_Previews: PreviewProvider { static var previews: some View { TestView() } } #endif Error: Build input file cannot be found:...TestPackagePreview.o' (in targ SchemeBuildError: Failed to build the scheme TestPackagePreview Build input file cannot be found: ...TestPackagePreview.o' (in target 'TestPackagePreviewTests' from project 'TestPackagePreview' Link TestPackagePreviewTests (x86_64): error: Build input file cannot be found: ...TestPackagePreview.o' (in target 'TestPackagePreviewTests' from project 'TestPackagePrev
Replies
3
Boosts
0
Views
5.5k
Activity
Jun ’20
Swift package manager
I am getting an error message (mixed language) while adding the Swift package dependency. Source code mostly contains Swift language and a little bit of Objective-C. Can't we mix Swift and Objective-C language? If so, what is the workaround
Replies
0
Boosts
0
Views
520
Activity
May ’21
ReferenceFileDocument or FileDocument with Package types
I would like to use ReferenceFileDocument or FileDocument but the file type I use is a package type that conforms to com.apple.package. However the FileDocument - https://developer.apple.com/documentation/swiftui/filedocument and ReferenceFileDocument - https://developer.apple.com/documentation/swiftui/referencefiledocument respective write methods are called with a inout FileWrapper. I need this this FileWrapper to be a directory FileWrapper so that i can add child items to it. However the write method is being called with a regularFile instance of the FileWrapper so i am unable to add nested files that I need within my package. My writableContentTypes is UTType(exportedAs: com.example.package, conformingTo: .package). And my Xcode project expires/declares this data type as a package, so that UIDocument/NSDocument work.
Replies
1
Boosts
0
Views
696
Activity
Jun ’20
Reply to Problem using test plans with local Swift Packages
I was able to resolve this. As far as I can tell, it's an Xcode bug.The short version is that Xcode seems to assume that at least one test configuration will use the shared (default) test configuration, unmodified. That assumption can of course be wrong; it's possible that no test configuration exactly matches the defaults. The mistake can prevent Xcode from finding the test target bundles for local Swift Packages.The long version...* A test plan has a shared (default) test configuration.* A test plan has one or more actual test configurations.* Xcode places build products in directories whose names are based on their differences from the shared (default) configuration.* The build products for test configurations that don't have any meaningful differences are placed under the root, e.g.: /Products/xxx/....* The build products for test configurations that do have meaningful differences are placed under subirectories whose names are derived from the differences, e.g.: /Products
Replies
Boosts
Views
Activity
May ’20
Reply to How to correctly deploy bundled launchdaemons/launchagents?
Lemme take a step back here. ES products typically ship in one of two ways: If they’re consumer focused, they use an ES system extension. If they’re enterprise focused, they use an ES daemon. It sounds like you fall into the latter category. If so, why are you adopting SMAppService? That mechanism is intended for folks shipping consumer focused products. For an ES client that’s targeting enterprise environments it makes sense to stick with an installer package. In short, SMAppService is meant to be a replacement for things like SMJobBless and SMLoginItemSetEnabled, not a replacement for installer packages and launchctl. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Oct ’24
Reply to SwiftUI Previews in Xcode 14 failed to run with SettingsError: noExecutablePath(IDESwiftPackageStaticLibraryProductBuildable)
Same problem here: SettingsError: noExecutablePath() This time it's even a library that does not get used at all on Apple platforms, since it's conditional in Package.swift: dependencies: [ .product(name: CLibreSSL, package: CLibreSSL, condition: .when(platforms: [.linux])), ],
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22
Swift package manager
I have an Xcode project that generates xyz.framework and that framework is used by other teams for their app. Updating the framework is a manual process. So I am planning to covert my xyz.framwork source to swift package manager. I couldn't find any such articles. Please let me know if there is any resource around this topic.
Replies
0
Boosts
0
Views
460
Activity
Apr ’21
Reply to I can't submit my app to the app store
Another thing is that if I temporarily move my .app file out of /Applications and run my pkg, it says the installation was sucessful. But no new files are added/installed in /Applications. That suggests that there’s a problem with the way that your installer package is constructed. I signed the pkg with productsign and built it with productbuild. Note You can do this in one step (using productbuild) but doing it in two is not an issue. How are you invoking productbuild? The default command I used for this is in Signing a Mac Product For Distribution - https://developer.apple.com/forums/thread/128166. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Apr ’21
Convert package into static library. How?
Hello all! Is there any way to convert package into static library (*.a)?
Replies
0
Boosts
0
Views
855
Activity
May ’23