Search results for

“missing package product”

52,927 results found

Post

Replies

Boosts

Views

Activity

In-App Purchases not loading in production / TestFlight — Previously missing Paid Apps Agreement — App rejected under Guideline 3.1.2
Hello, My app was rejected on iPad (iPad Air 11-inch M3, iPadOS 26.2.1) with two related issues: Guideline 2.1 – Performance – App Completeness “The app exhibited one or more bugs that would negatively impact users. Bug description: the premium subscription cannot be loaded properly.” Guideline 3.1.2 – Business – Payments – Subscriptions “The submission did not include all the required information for apps offering auto-renewable subscriptions.” I am using StoreKit 2 with SubscriptionStoreView to present the auto-renewable subscription. During development: Subscriptions load correctly in the simulator (sandbox). On real devices, I test without a local StoreKit configuration file to fetch products from App Store Connect. The subscription UI (title, duration, price) displays correctly when products are returned. At the time of review, the Paid Apps Agreement was not active. I suspect this may have caused the subscription products to fail loading on the review device. Since then: Paid
1
0
257
Feb ’26
Reply to Login Item for an App showing unidentified developer
How are you installing this login item? Also, you wrote: The code we use to sign That’s using --deep, which is something I specifically recommend against. For general advice on how to sign and package Mac products, see: Creating Distribution-Signed Code for Mac Packaging Mac Software for Distribution Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: App & System Services SubTopic: Core OS Tags:
Dec ’22
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.2k
Jun ’23
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.7k
Oct ’21
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
636
Apr ’20
Unable to create a simple installable package
Hi, I am a newcomer in macOS development, and I am struggling to create a package with the XCode command line tools that is installable on other computers. In its minimal version, the package shall install a simple program to usr/local/: hello.c: #include int main(void) { printf(Hello Worldn); return 0; } distribution.plist: Hello World h1.pkg build.sh: #!/bin/sh cc -o hello hello.c mkdir -p local/bin cp hello local/bin/ codesign -s - -i net.world.hello local/bin/hello pkgbuild --identifier net.world.hello --root local --install-location /usr/local h1.pkg productbuild --distribution distribution.plist --resources . hello.pkg The build scrips produces a package hello.pkg. However, when I try to install it, I get : Product archive /Users/foo/hello.pkg trustLevel=100 : PKInstallRequest: failed to initialize. Error: Error Domain=PKInstallRequestErrorDomain Code=2 Specifier Description:: { URL = file:///Users/foo/h1.pkg; identifier = net.wo
2
0
945
Mar ’24
String catalogs in packages
We have separated much of our UI into different packages to reduce complexity and compile time. When we recently tested using new .xcstrings string catalogs, we hit an unexpected problem. Strings extracted from SwiftUI components like Text or Button are extracted into the Localizable.xcstrings in the same package, but the default behaviour of Text(_ key:tableName:bundle:comment:) is to use Bundle.main. When the default behaviour of the string extraction isn't to extract to the main app target, this introduces a very fragile system where it's easy to add code that looks localised, but ends up failing lookup at runtime. I don't feel comfortable that we will always remember to define the correct module every time we create a Text. Also, other components like Button doesn't have an init that takes a Bundle, so we would also have to remember that Button(_ titleKey:action:) can now only be used in a package if we make sure that the main bundle contains a matching key. Is there a way for u
4
0
2.4k
Sep ’23
Cannot resolve dependencies when using a test only target from Swift Package
I'm having an issue resolving some dependencies in the test suite for my app when using a Swift Package in my test target. Here's the setup: We have a Swift Package that contains two products. One product is the main library that is used throughout our app. The other product is a library of testing utilities, like mocks and such. This is a simplified version of its Package.Swift file with actual package/target/library/dependency names changed. let package = Package( name: Library, platforms: [ .iOS(.v14) ], products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: Library, targets: [Library]), .library( name: LibraryTestUtilities, targets: [LibraryTestUtilities] ), ], dependencies: [ // Dependencies declare other packages that this package depends on. // .package(url: /* package url */, fr
3
0
2.4k
Dec ’22
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
416
Nov ’24
Reply to Stapling ticket for Notarization
Thanks for the details.We do have a product build system where we do not want to modify the package by stapling the ticket for now. So as is understood Gatekeeper will require to be online in this case to validate by getting the ticket online from Apple notarisation server.
Topic: Code Signing SubTopic: General Tags:
May ’19
Building XCFrameworks from a hierarchy of Swift Packages
This post is meant to provide useful information on how to build a set of xcframeworks from a hierarchy of Swift Packages containing a mix of ObjC and Swift. If you only want to build a single xcframework from a Swift Package, as this is not obvious either, you should find some useful info too. Stuff that needs to be done for building an XCFramework from a Swift Package through xcodebuild set library type to .dynamic in Package.swift set SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES OTHER_SWIFT_FLAGS=-no-verify-emitted-module-interface in xcodebuild command no need to use 'archive' xcodebuild command, xcodebuild alone is enough In generated framework : copy public headers (in case of ObjC package) copy (or create) module.modulemap file, or copy .swiftmodule file copy umbrella header FooPackage-Swift.h from derived data (use -derivedDataPath xcodebuild option to retrieve it) in case of Swift Package, otherwise won't be useable from ObjC copy resource bundle (if
3
0
3.7k
Nov ’23
SwiftUI Preview don't work in Package with dependencies
Hi, I using packages to modularize my app's features, so my package contains Views. I'm unable to get the preview working in from any of my packages. SwiftUI preview is complaining that it couldn't find the dependency module. MessageSendFailure: Message send failure for send previewInstances message to agent ================================== | RemoteHumanReadableError | | LoadingError: failed to load library at path /Users/karthik/Library/Developer/Xcode/DerivedData/WWoC-eovhbulekrmpsfbtdmwyilxornun/Build/Intermediates.noindex/Previews/WWoC/Products/Debug-iphonesimulator/PackageFrameworks/Groups.framework/Groups: Optional(dlopen(/Users/karthik/Library/Developer/Xcode/DerivedData/WWoC-eovhbulekrmpsfbtdmwyilxornun/Build/Intermediates.noindex/Previews/WWoC/Products/Debug-iphonesimulator/PackageFrameworks/Groups.framework/Groups, 0x0000): Library not loaded: @rpath/UIConvenience.framework/UIConvenience | Referenced from: /Users/karthik/Library/Developer/Xcode/DerivedD
2
0
5.1k
Jul ’21
In-App Purchases not loading in production / TestFlight — Previously missing Paid Apps Agreement — App rejected under Guideline 3.1.2
Hello, My app was rejected on iPad (iPad Air 11-inch M3, iPadOS 26.2.1) with two related issues: Guideline 2.1 – Performance – App Completeness “The app exhibited one or more bugs that would negatively impact users. Bug description: the premium subscription cannot be loaded properly.” Guideline 3.1.2 – Business – Payments – Subscriptions “The submission did not include all the required information for apps offering auto-renewable subscriptions.” I am using StoreKit 2 with SubscriptionStoreView to present the auto-renewable subscription. During development: Subscriptions load correctly in the simulator (sandbox). On real devices, I test without a local StoreKit configuration file to fetch products from App Store Connect. The subscription UI (title, duration, price) displays correctly when products are returned. At the time of review, the Paid Apps Agreement was not active. I suspect this may have caused the subscription products to fail loading on the review device. Since then: Paid
Replies
1
Boosts
0
Views
257
Activity
Feb ’26
Reply to Login Item for an App showing unidentified developer
How are you installing this login item? Also, you wrote: The code we use to sign That’s using --deep, which is something I specifically recommend against. For general advice on how to sign and package Mac products, see: Creating Distribution-Signed Code for Mac Packaging Mac Software for Distribution Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’22
Add package to Xcode Cloud
Hello, I have a repo with only packages (includes snapshot tests). Is there a possibility to add package to the Xcode Cloud (package does not contain a application - it's only design system)
Replies
1
Boosts
0
Views
674
Activity
Jan ’23
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.2k
Activity
Jun ’23
Reply to Missing "Products" folder when creating a framework
https://stackoverflow.com/questions/70635415/xcode-13-missing-products-folder-when-creating-a-framework It worked on me - the answer > Simple way
Replies
Boosts
Views
Activity
May ’22
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.7k
Activity
Oct ’21
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
636
Activity
Apr ’20
Unable to create a simple installable package
Hi, I am a newcomer in macOS development, and I am struggling to create a package with the XCode command line tools that is installable on other computers. In its minimal version, the package shall install a simple program to usr/local/: hello.c: #include int main(void) { printf(Hello Worldn); return 0; } distribution.plist: Hello World h1.pkg build.sh: #!/bin/sh cc -o hello hello.c mkdir -p local/bin cp hello local/bin/ codesign -s - -i net.world.hello local/bin/hello pkgbuild --identifier net.world.hello --root local --install-location /usr/local h1.pkg productbuild --distribution distribution.plist --resources . hello.pkg The build scrips produces a package hello.pkg. However, when I try to install it, I get : Product archive /Users/foo/hello.pkg trustLevel=100 : PKInstallRequest: failed to initialize. Error: Error Domain=PKInstallRequestErrorDomain Code=2 Specifier Description:: { URL = file:///Users/foo/h1.pkg; identifier = net.wo
Replies
2
Boosts
0
Views
945
Activity
Mar ’24
String catalogs in packages
We have separated much of our UI into different packages to reduce complexity and compile time. When we recently tested using new .xcstrings string catalogs, we hit an unexpected problem. Strings extracted from SwiftUI components like Text or Button are extracted into the Localizable.xcstrings in the same package, but the default behaviour of Text(_ key:tableName:bundle:comment:) is to use Bundle.main. When the default behaviour of the string extraction isn't to extract to the main app target, this introduces a very fragile system where it's easy to add code that looks localised, but ends up failing lookup at runtime. I don't feel comfortable that we will always remember to define the correct module every time we create a Text. Also, other components like Button doesn't have an init that takes a Bundle, so we would also have to remember that Button(_ titleKey:action:) can now only be used in a package if we make sure that the main bundle contains a matching key. Is there a way for u
Replies
4
Boosts
0
Views
2.4k
Activity
Sep ’23
Cannot resolve dependencies when using a test only target from Swift Package
I'm having an issue resolving some dependencies in the test suite for my app when using a Swift Package in my test target. Here's the setup: We have a Swift Package that contains two products. One product is the main library that is used throughout our app. The other product is a library of testing utilities, like mocks and such. This is a simplified version of its Package.Swift file with actual package/target/library/dependency names changed. let package = Package( name: Library, platforms: [ .iOS(.v14) ], products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: Library, targets: [Library]), .library( name: LibraryTestUtilities, targets: [LibraryTestUtilities] ), ], dependencies: [ // Dependencies declare other packages that this package depends on. // .package(url: /* package url */, fr
Replies
3
Boosts
0
Views
2.4k
Activity
Dec ’22
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
416
Activity
Nov ’24
Reply to Stapling ticket for Notarization
Thanks for the details.We do have a product build system where we do not want to modify the package by stapling the ticket for now. So as is understood Gatekeeper will require to be online in this case to validate by getting the ticket online from Apple notarisation server.
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’19
Building XCFrameworks from a hierarchy of Swift Packages
This post is meant to provide useful information on how to build a set of xcframeworks from a hierarchy of Swift Packages containing a mix of ObjC and Swift. If you only want to build a single xcframework from a Swift Package, as this is not obvious either, you should find some useful info too. Stuff that needs to be done for building an XCFramework from a Swift Package through xcodebuild set library type to .dynamic in Package.swift set SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES OTHER_SWIFT_FLAGS=-no-verify-emitted-module-interface in xcodebuild command no need to use 'archive' xcodebuild command, xcodebuild alone is enough In generated framework : copy public headers (in case of ObjC package) copy (or create) module.modulemap file, or copy .swiftmodule file copy umbrella header FooPackage-Swift.h from derived data (use -derivedDataPath xcodebuild option to retrieve it) in case of Swift Package, otherwise won't be useable from ObjC copy resource bundle (if
Replies
3
Boosts
0
Views
3.7k
Activity
Nov ’23
SwiftUI Preview don't work in Package with dependencies
Hi, I using packages to modularize my app's features, so my package contains Views. I'm unable to get the preview working in from any of my packages. SwiftUI preview is complaining that it couldn't find the dependency module. MessageSendFailure: Message send failure for send previewInstances message to agent ================================== | RemoteHumanReadableError | | LoadingError: failed to load library at path /Users/karthik/Library/Developer/Xcode/DerivedData/WWoC-eovhbulekrmpsfbtdmwyilxornun/Build/Intermediates.noindex/Previews/WWoC/Products/Debug-iphonesimulator/PackageFrameworks/Groups.framework/Groups: Optional(dlopen(/Users/karthik/Library/Developer/Xcode/DerivedData/WWoC-eovhbulekrmpsfbtdmwyilxornun/Build/Intermediates.noindex/Previews/WWoC/Products/Debug-iphonesimulator/PackageFrameworks/Groups.framework/Groups, 0x0000): Library not loaded: @rpath/UIConvenience.framework/UIConvenience | Referenced from: /Users/karthik/Library/Developer/Xcode/DerivedD
Replies
2
Boosts
0
Views
5.1k
Activity
Jul ’21
Create .pkg with license
Hi, I have read the post https://developer.apple.com/forums/thread/128166 but how can I add the license agreements into the pkg? in the same way that SF Symbols installer Thanks
Replies
3
Boosts
0
Views
2.1k
Activity
Mar ’21