Search results for

“missing package product”

52,918 results found

Post

Replies

Boosts

Views

Activity

Reply to UI Testing doesn't launch app
Good question. I tried running on the device but I received a code signing error:/Users/kiel.gillard/Library/Developer/Xcode/DerivedData/Alfred-adlymjyjtksujwbgrfamofhzhuck/Build/Products/Debug-iphoneos/AFRUITests-Runner.app/PlugIns/AFRUITests.xctest: No such file or directory Command /usr/bin/codesign failed with exit code 1The file indeed does not exist. Rather, an AFRUITests.app package exists in the directory instead and that app package merely contains an Info.plist file (it's missing an executable).Kiel
Sep ’15
Adding a transaction for a in-app purchase gives a "Missing Product Id" popup
Hi, I have followed all instructions in https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/testing_in-app_purchases_in_xcode. My app is not on the Apple Store but is ready to submit. I have created an in-app purchase in applestoreconnect that is also ready to submit. When I try to add a transaction in the Transaction Manager, I get Missing Product Id with no further info about the problem. I can't seem to get any information about this online. What could be the problem?
1
0
352
Sep ’23
Reply to How to use Apple server to host IPA content
If Apple is hosting the content they will only download a particular package for a particular IAP product that is purchased. Therefore you will need 100 products and the user will pick the product and buy a productIdentifier. If you host the content you can let the user buy a consumable IAP and then swap that IAP for a particular package to download.
Topic: App & System Services SubTopic: StoreKit Tags:
Feb ’17
Reply to No such module 'FrameworkName' when archive
I was able to fix it by separating the xcframework to its own Swift Package let package = Package( name: TheLibrary, products: [ .library(name: TheLibrary, targets: [TheLibrary]), ], dependencies: [], targets: [ .binaryTarget(name: TheLibrary, path: Sources/TheLibrary.xcframework) ] ) and then including as a dependency in main project. let package = Package( name: MainProject, platforms: [.iOS(.v11), .macOS(.v10_15)], products: [ .library(name: MainProject, targets: [MainProject]) ], dependencies: [ .package(url: ../TheLibrary, from: 1.0.0) ], targets: [ .target( name: MainProject, dependencies: [ TheLibrary ] ) ] ) I hope it helps!
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’21
Reply to Signing an app
Hi, They have provided us some scripts and templates, which performs code sign and product sign, just we have to provide all the binaries and executables to them. since I don't have certificates so can't sign project from Xcode. As per my understanding we have to sign .pkg, .app and all the library executables (.dylib ). when i verify my signed .app it shows me message app: a sealed resource is missing or invalid Used some third party framework in project and there are some symlink in that, is that causing the issue ? do I need to sign framework as well if yes then how ? or is there any step I am missing in signing process
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’21
Reply to Xcode Previews doesn't work when used in a package that imports other packages.
I have had the same problem with displaying previews in Swift packages. My project architecture is: UIComponents (local package) - AppPackage (local package) - App What I did was to add .dynamic parameter to .library declaration in both packages. Now I can see previews for all SwiftUI files, both in UIComponents and AppPackage. swift products: [ .library( name: UIComponents, type: .dynamic, /* added parameter */ targets: [UIComponents]) ], swift products: [ .library( name: AppPackage, type: .dynamic, /* added parameter */ targets: [AppPackage]) ], dependencies: [ .package(path: ../UIComponents) ],
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’21
Reply to Xcode SPM when switching between branches
Create a local SPM in your project Add all your dependency packages into the Package file e.x. import PackageDescription let package = Package( name: Dependencies, products: [ .library( name: Dependencies, targets: [Dependencies]), ], dependencies: [ .package(url: https://package_url.git, exact: 0.0.1), ], targets: [ .target( name: Dependencies, dependencies: [ .product(name: package_name, package: package_name), ] ), .testTarget( name: DependenciesTests, dependencies: [Dependencies]), ] ) Go to target -> General -> Frameworks, Libraries, and Embedded Content add Dependencies close Xcode and apply this commit to all branches reopen Xcode
Nov ’24
Reply to Swift Package Manager not building external dependencies correctly
Ok, so I managed to fix this by adding dependency to my target. Here's the update Package.swift // swift-tools-version: 5.10 // The swift-tools-version declares the minimum version of Swift required to build this package. let package = Package( name: MyPackage, platforms: [.iOS(.v16), .macCatalyst(.v16), .macOS(.v14)], products: [.library(name: MyPackage, targets: [MyPackage]),], dependencies: [ .package(path: ../external-package) ], targets: [ .target( name: MyPackage, dependencies: [ 👉❗️ .product(name: ExternalPackageName, package: external-package) ], path: Sources ), .testTarget(name: MyPackageTests, dependencies: [MyPackage]), ] )
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’24
Reply to Toolchain library errors when building C++ Swift Package
I'm still not sure about the reason of the issue, but I discovered that you can't include binaries in a Swift Package.This is the correct Package.swift:// swift-tools-version:5.1 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: MyLibrary, products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. .library( name: MyLibrary, targets: [MyLibrary]), ], dependencies: [], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages which this package depends on. .target( name: MyLibrary, dependencies: [], path: Sources/MyLibrary, linkerSettings: [ .linkedFramework(Security), .linkedLibrary(pthread), .linkedLibr
Feb ’20
Reply to MacOS application: How to become an identified developer?
I have notarised my app in this way Product > Archive > Distribute App > Deverloper ID > Upload then after some time I got a notification saying your app got notarised and ready to distribute. I then exported app and double clicked it and it works really well. But when I generate .pkg file then trying to install, it says unidentified developer What should I do now? is there any step I am missing. Your help is much appreciated. Many Thanks, Vishwanath
Topic: Code Signing SubTopic: General Tags:
Aug ’20
Reply to Signing an app
Hi, They have provided us some scripts and templates, which performs code sign and product sign, just we have to provide all the binaries and executables to them. since I don't have certificates so can't sign project from Xcode. As per my understanding we have to sign .pkg, .app and all the library executables (.dylib ). when i verify my signed .app it shows me message app: a sealed resource is missing or invalid Used some third party framework in project and there are some symlink in that, is that causing the issue ? do I need to sign framework as well if yes then how ? or is there any step I am missing in signing process.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’21
Xcode test coverage data missing for external swift source package library dependency
In writing swift packages, I'd like to put demos, tests, docs into a separate package from my library package (to simplify how the library is consumed). But in Xcode (15.4 or 16 beta 4) after opening the package, I don't see any test code coverage information for the external package - only for package targets. When using the scheme editor I didn't see anything on point in panels for Run/Diagnostics, or Profile. Same result when targeting local packages (using path: ../{package}). When configuring a workspace with both packages, I could not run or configure tests. Is it possible to get coverage for an external library module used by the test (assuming they are sources locally built)? Is there a (online) recipe? Many thanks!
0
0
714
Jul ’24
iTMSTransporter could not generate an itmsp: could not find any packages bundle within the swinfo description (product-metadata.packages)
I seem to be sporadically receiving this error message from transporter, mainly: iTMSTransporter could not generate an itmsp: could not find any packages bundle within the swinfo description (product-metadata.packages). Sometimes it succeeds and sometimes not using the same build. Could somebody tell me what this means please? Debug log
1
0
1.3k
Jan ’22
Reply to UI Testing doesn't launch app
Good question. I tried running on the device but I received a code signing error:/Users/kiel.gillard/Library/Developer/Xcode/DerivedData/Alfred-adlymjyjtksujwbgrfamofhzhuck/Build/Products/Debug-iphoneos/AFRUITests-Runner.app/PlugIns/AFRUITests.xctest: No such file or directory Command /usr/bin/codesign failed with exit code 1The file indeed does not exist. Rather, an AFRUITests.app package exists in the directory instead and that app package merely contains an Info.plist file (it's missing an executable).Kiel
Replies
Boosts
Views
Activity
Sep ’15
Adding a transaction for a in-app purchase gives a "Missing Product Id" popup
Hi, I have followed all instructions in https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/testing_in-app_purchases_in_xcode. My app is not on the Apple Store but is ready to submit. I have created an in-app purchase in applestoreconnect that is also ready to submit. When I try to add a transaction in the Transaction Manager, I get Missing Product Id with no further info about the problem. I can't seem to get any information about this online. What could be the problem?
Replies
1
Boosts
0
Views
352
Activity
Sep ’23
Reply to How to use Apple server to host IPA content
If Apple is hosting the content they will only download a particular package for a particular IAP product that is purchased. Therefore you will need 100 products and the user will pick the product and buy a productIdentifier. If you host the content you can let the user buy a consumable IAP and then swap that IAP for a particular package to download.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Feb ’17
Reply to No such module 'FrameworkName' when archive
I was able to fix it by separating the xcframework to its own Swift Package let package = Package( name: TheLibrary, products: [ .library(name: TheLibrary, targets: [TheLibrary]), ], dependencies: [], targets: [ .binaryTarget(name: TheLibrary, path: Sources/TheLibrary.xcframework) ] ) and then including as a dependency in main project. let package = Package( name: MainProject, platforms: [.iOS(.v11), .macOS(.v10_15)], products: [ .library(name: MainProject, targets: [MainProject]) ], dependencies: [ .package(url: ../TheLibrary, from: 1.0.0) ], targets: [ .target( name: MainProject, dependencies: [ TheLibrary ] ) ] ) I hope it helps!
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’21
Reply to Signing an app
Hi, They have provided us some scripts and templates, which performs code sign and product sign, just we have to provide all the binaries and executables to them. since I don't have certificates so can't sign project from Xcode. As per my understanding we have to sign .pkg, .app and all the library executables (.dylib ). when i verify my signed .app it shows me message app: a sealed resource is missing or invalid Used some third party framework in project and there are some symlink in that, is that causing the issue ? do I need to sign framework as well if yes then how ? or is there any step I am missing in signing process
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Creating tabletop games - Build Failure
Add platforms information in Package.swift under Packages/RealityKitContent folder may help. let package = Package( name: RealityKitContent, platforms: [ .visionOS(2.0) ], products: [ ....
Topic: Spatial Computing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to Xcode Previews doesn't work when used in a package that imports other packages.
I have had the same problem with displaying previews in Swift packages. My project architecture is: UIComponents (local package) - AppPackage (local package) - App What I did was to add .dynamic parameter to .library declaration in both packages. Now I can see previews for all SwiftUI files, both in UIComponents and AppPackage. swift products: [ .library( name: UIComponents, type: .dynamic, /* added parameter */ targets: [UIComponents]) ], swift products: [ .library( name: AppPackage, type: .dynamic, /* added parameter */ targets: [AppPackage]) ], dependencies: [ .package(path: ../UIComponents) ],
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’21
Reply to Xcode SPM when switching between branches
Create a local SPM in your project Add all your dependency packages into the Package file e.x. import PackageDescription let package = Package( name: Dependencies, products: [ .library( name: Dependencies, targets: [Dependencies]), ], dependencies: [ .package(url: https://package_url.git, exact: 0.0.1), ], targets: [ .target( name: Dependencies, dependencies: [ .product(name: package_name, package: package_name), ] ), .testTarget( name: DependenciesTests, dependencies: [Dependencies]), ] ) Go to target -> General -> Frameworks, Libraries, and Embedded Content add Dependencies close Xcode and apply this commit to all branches reopen Xcode
Replies
Boosts
Views
Activity
Nov ’24
Reply to Swift Package Manager not building external dependencies correctly
Ok, so I managed to fix this by adding dependency to my target. Here's the update Package.swift // swift-tools-version: 5.10 // The swift-tools-version declares the minimum version of Swift required to build this package. let package = Package( name: MyPackage, platforms: [.iOS(.v16), .macCatalyst(.v16), .macOS(.v14)], products: [.library(name: MyPackage, targets: [MyPackage]),], dependencies: [ .package(path: ../external-package) ], targets: [ .target( name: MyPackage, dependencies: [ 👉❗️ .product(name: ExternalPackageName, package: external-package) ], path: Sources ), .testTarget(name: MyPackageTests, dependencies: [MyPackage]), ] )
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’24
Reply to Toolchain library errors when building C++ Swift Package
I'm still not sure about the reason of the issue, but I discovered that you can't include binaries in a Swift Package.This is the correct Package.swift:// swift-tools-version:5.1 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: MyLibrary, products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. .library( name: MyLibrary, targets: [MyLibrary]), ], dependencies: [], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages which this package depends on. .target( name: MyLibrary, dependencies: [], path: Sources/MyLibrary, linkerSettings: [ .linkedFramework(Security), .linkedLibrary(pthread), .linkedLibr
Replies
Boosts
Views
Activity
Feb ’20
Reply to MacOS application: How to become an identified developer?
I have notarised my app in this way Product > Archive > Distribute App > Deverloper ID > Upload then after some time I got a notification saying your app got notarised and ready to distribute. I then exported app and double clicked it and it works really well. But when I generate .pkg file then trying to install, it says unidentified developer What should I do now? is there any step I am missing. Your help is much appreciated. Many Thanks, Vishwanath
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’20
Reply to Signing an app
Hi, They have provided us some scripts and templates, which performs code sign and product sign, just we have to provide all the binaries and executables to them. since I don't have certificates so can't sign project from Xcode. As per my understanding we have to sign .pkg, .app and all the library executables (.dylib ). when i verify my signed .app it shows me message app: a sealed resource is missing or invalid Used some third party framework in project and there are some symlink in that, is that causing the issue ? do I need to sign framework as well if yes then how ? or is there any step I am missing in signing process.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to SwiftUI Previews in Xcode 14 failed to run with SettingsError: noExecutablePath(IDESwiftPackageStaticLibraryProductBuildable)
Same here with beta 6 I delete the package in Product -> Package dependencies to run the preview (and add again when building).. Does anyone have update regarding this issue ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Xcode test coverage data missing for external swift source package library dependency
In writing swift packages, I'd like to put demos, tests, docs into a separate package from my library package (to simplify how the library is consumed). But in Xcode (15.4 or 16 beta 4) after opening the package, I don't see any test code coverage information for the external package - only for package targets. When using the scheme editor I didn't see anything on point in panels for Run/Diagnostics, or Profile. Same result when targeting local packages (using path: ../{package}). When configuring a workspace with both packages, I could not run or configure tests. Is it possible to get coverage for an external library module used by the test (assuming they are sources locally built)? Is there a (online) recipe? Many thanks!
Replies
0
Boosts
0
Views
714
Activity
Jul ’24
iTMSTransporter could not generate an itmsp: could not find any packages bundle within the swinfo description (product-metadata.packages)
I seem to be sporadically receiving this error message from transporter, mainly: iTMSTransporter could not generate an itmsp: could not find any packages bundle within the swinfo description (product-metadata.packages). Sometimes it succeeds and sometimes not using the same build. Could somebody tell me what this means please? Debug log
Replies
1
Boosts
0
Views
1.3k
Activity
Jan ’22