Search results for

“missing package product”

52,933 results found

Post

Replies

Boosts

Views

Activity

Binary Swift Package Chicken and Egg Situation
So, I've been following along the video on Distribute binary frameworks as Swift packages - https://developer.apple.com/videos/play/wwdc2020/10147/, but now I'm sort of stuck. I have my Swift Package that works fine when used as a source package, which I want to ship as a binary now. The video says, I'm supposed to add a target: swift import PackageDescription let package = Package( name: Test, defaultLocalization: de, platforms: [ .iOS(.v13) ], products: [ .library( name: Test, targets: [Test] ), ], dependencies: [ ], targets: [ // .target(name: Test) .binaryTarget( name: Test, url: https://static.looc.io/Test/Test-1.0.0.xcframework.zip, checksum: 9848327892347324789432478923478 ) ] ) but, the xcframework is what I am trying to build, don't have an xcframework yet? With the above, if I run: bash [konrad@iMac-2 Source]$ xcodebuild archive -workspace Test -scheme Test archivePath tmp/iOS destination generic/platform=iOS SKIP_INSTALL=NO BUILD_LIBRARY_FOR_D
3
0
2.3k
Feb ’21
Reply to Crypting ITMS-90886 error abound bundles identifiers and provisioning profiles
I've received the same error as well. I'm using electron with nested helper applications (e.g. Main.app/Contents/Frameworks/Helper.app) The following causes the error for me codesign -s $DISTRIBUTION_KEY -f --entitlements $CHILD_PLIST packages/mas-universal/{APP_NAME}.app/Contents/Frameworks/{APP_NAME} Helper (Renderer).app productbuild --component packages/mas-universal/{APP_NAME}.app /Applications --sign $INSTALLER_KEY packages/{APP_NAME}.pkg -- This seems to fix the error, but causes a new error codesign --sign {40-char-hash-from-electron/osx-sign} --force --timestamp --options runtime --entitlements $CHILD_PLIST packages/mas-universal/{APP_NAME}.app/Contents/Frameworks/{APP_NAME} Helper (Renderer).app productbuild --component packages/mas-universal/{APP_NAME}.app /Applications --sign $INSTALLER_KEY packages/{APP_NAME}.pkg -- WARNING ITMS-90885: Cannot be used with TestFlight because the executable “${executable}” in bundle “${bundle}”
Topic: Code Signing SubTopic: General Tags:
May ’23
Reply to xcode 10.1 crash on startup in Mojave
Problem solved:The problem was that i extracted the xip on an external ssd drive and then dragged the Xcode package to the program folder.Extracting the xip in the program folder did the trick that Xcode asked then for installing additional components (probably the ones that were missing) and started up normally after.
Jun ’19
Importing a custom programmed swift package
I have made a custom swift package that contains the encoding and decoding functions for my app String Conversion Tool. It is uploaded to GitHub: (https://github.com/Casual3306/ConverterExtra). I do a request for the package (in my apps main project) and the package imports just fine, it is present in the Frameworks, Libraries, and Embedded Content and it is present in Package Dependencies, I have also run: Reset Package Caches and Resolve Package Versions. The package also imports into the designated module as a module but when I try to access any of that modules files like > ConverterExtras > Encoders it is giving me an error saying that This class may not be available in this context. All of the files are in the module package but Xcode isn't finding them for some reason: Xcode version: 13 System: MacOS (Big Sur 11.6)
2
0
3.4k
Oct ’21
Active Compilation Conditions in Packages
The flags like #if DEBUG ... endif are dependent on the Active Compilation Conditions. So if they say DEBUG the enclosed code block will be executed, otherwise not. Now I have the phenomenon that a #DEBUG block in a Package does not evaluate these conditions. It rather depends on the name of the configuration used to build. So if I build my app with Active Compilation Condition set to DEBUG, but the configuration name is something like App-Release, the DEBUG block in my Package is not added/executed. The ones which are directly in the project are added. Vice versa if the Compilation Condition say RELEASE but the configuration is called App-Debug the blocks in the Package are added to the compilation, but the ones in the project itself are not It suffices that the config name contains the word Debug for this to happen. E.g. the configuration App-Release-Debug (I know that this would be stupid, but it is for demonstrating purposes) will cause the Packages to include the DEBUG
0
0
123
Mar ’25
Accessing Resources of other package targets or dependencies using Swift Package Manager
Good day I am developing XRKit framework, which contains the pipeline logic for rendering using Metal, in manifest it has two targets - framework itself in Swift and XRKitDefenitions in C++ and MSL (since Apple forbids us multilingualism in one package). Both targets have Resources folders open in their manifest. When I try to access the test files hello01.txt (Resources for XRKit) and hello2.txt (Resources for XRKitDefenitions) via Bundle.module, I only see hello01.txt and it doesn't read hello2.txt because it's in a different target. How do I properly organize my code with SPM to access the Resources of XRKitDefenitions target? PS When trying to organize XRKitDefenitions as a remote package on GitHub and defining it as a dependency, situation does not change. I understand now that Bundle.module only refers to its Resources. Is there a way to refer to resources that provided other targets or dependencies in the same package?
1
0
2.3k
May ’22
Determining development/production environment for DeviceCheck
Is there a recommended way to determine whether to use the development or the production server API endpoint for DeviceCheck? For App Attest, the authenticator data includes either appattest or appattestdevelop in a field of the cbor data. For IAPs, we're supposed to try the production endpoint and then retry with the development endpoint if we get a particular HTTP status code. But the docs for DeviceCheck say only to use the development endpoint in development and the production endpoint in production. What are others doing? Is there any clue in the docs that I have missed?
1
0
1.3k
Mar ’22
PKG Stapling fails post successful notarization
Hi AllI am trying to Notarize and Staple a pkg installer of our app, I am facing issues with staplingMy PKG is product signed with a valid developer certificateFollowing is how i verify itspctl -a -v --type install test.pkg test.pkg: acceptedsource=Notarized Developer IDpkgutil --check-signature test.pkgPackage test.pkg: Status: signed by a certificate trusted by macOSIt was successfully Notarized and status of the request shows success.But when i try Staple the same app it fails with following errorstapler staple --verbose test.pkgProcessing: /Users/admin/Downloads/test.pkgProperties are { NSURLIsDirectoryKey = 0; NSURLIsPackageKey = 0; NSURLIsSymbolicLinkKey = 0; NSURLLocalizedTypeDescriptionKey = Installer package; NSURLTypeIdentifierKey = com.apple.installer-package-archive; _NSURLIsApplicationKey = 0;}Sig Type is RSA. Length is 3Could not find an appropriate code signature in the test.pkg installer package.Cannot download ticket. CDHash must be set.Please let
0
0
836
Nov ’19
Xcode Hangs on Updating {package-name}
Hey everyone, I recently installed macOS Ventura and when I went to update a package in Xcode, it hangs at Update Package {package-name} every time. Interestingly, the package it hangs on is different each time, but without fail it hangs. I'm no longer able to develop since our project depends on packages, and have been blocked by this for a few hours. Any ideas what the error might be or why it would hang like this? Things I've tried Clearing derived data resetting package cache from file -> packages
0
0
665
Oct ’22
Testing of swift packages containing bluetooth access impossible?
Hi, I tried to create a swift package using xCode's „Swift Package“ template and tried to write some tests. Unfortunately because my package is all about Bluetooth, the test binary fails with the following message; xctest[9145:288236] [access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothAlwaysUsageDescription key with a string value explaining to the user how the app uses this data. But how to add this key in a Swift Package? Is it really impossible to write and run test cases for a Swift Package containing Bluetooth? I must miss something...
0
0
1.3k
Feb ’22
Command line tools - headers missing
Hi,In 10.14 last year, Apple stopped installing headers with the command line tools, but it was possible to get them via a separate .pkg installer which they placed at /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg.This appears to be completely missing in 10.15 and I'm unable to compile 3rd party software using the command line tools because of missing headers like zlib and libxml2Anyone know where to get them for macOS 10.15 Catalina?Thanks
2
0
9.6k
Sep ’19
Binary Swift Package Chicken and Egg Situation
So, I've been following along the video on Distribute binary frameworks as Swift packages - https://developer.apple.com/videos/play/wwdc2020/10147/, but now I'm sort of stuck. I have my Swift Package that works fine when used as a source package, which I want to ship as a binary now. The video says, I'm supposed to add a target: swift import PackageDescription let package = Package( name: Test, defaultLocalization: de, platforms: [ .iOS(.v13) ], products: [ .library( name: Test, targets: [Test] ), ], dependencies: [ ], targets: [ // .target(name: Test) .binaryTarget( name: Test, url: https://static.looc.io/Test/Test-1.0.0.xcframework.zip, checksum: 9848327892347324789432478923478 ) ] ) but, the xcframework is what I am trying to build, don't have an xcframework yet? With the above, if I run: bash [konrad@iMac-2 Source]$ xcodebuild archive -workspace Test -scheme Test archivePath tmp/iOS destination generic/platform=iOS SKIP_INSTALL=NO BUILD_LIBRARY_FOR_D
Replies
3
Boosts
0
Views
2.3k
Activity
Feb ’21
Reply to Crypting ITMS-90886 error abound bundles identifiers and provisioning profiles
I've received the same error as well. I'm using electron with nested helper applications (e.g. Main.app/Contents/Frameworks/Helper.app) The following causes the error for me codesign -s $DISTRIBUTION_KEY -f --entitlements $CHILD_PLIST packages/mas-universal/{APP_NAME}.app/Contents/Frameworks/{APP_NAME} Helper (Renderer).app productbuild --component packages/mas-universal/{APP_NAME}.app /Applications --sign $INSTALLER_KEY packages/{APP_NAME}.pkg -- This seems to fix the error, but causes a new error codesign --sign {40-char-hash-from-electron/osx-sign} --force --timestamp --options runtime --entitlements $CHILD_PLIST packages/mas-universal/{APP_NAME}.app/Contents/Frameworks/{APP_NAME} Helper (Renderer).app productbuild --component packages/mas-universal/{APP_NAME}.app /Applications --sign $INSTALLER_KEY packages/{APP_NAME}.pkg -- WARNING ITMS-90885: Cannot be used with TestFlight because the executable “${executable}” in bundle “${bundle}”
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’23
TN3133: Packaging a Metal renderer
Distribute a Metal renderer in a Swift package. View Technote TN3133 >
Replies
0
Boosts
0
Views
1.4k
Activity
Nov ’22
Problem with localising a Swift package
I am using Xcode 15 and working on a localised app. I use the new String Catalogs feature which works great for my app. In my app I created some local package like Apple has done it in the Backyard Birds example. However the translations I did in the package's String Catalog won’t be used in the app. What am I doing wrong?
Replies
5
Boosts
0
Views
3.0k
Activity
Jul ’23
Reply to xcode 10.1 crash on startup in Mojave
Problem solved:The problem was that i extracted the xip on an external ssd drive and then dragged the Xcode package to the program folder.Extracting the xip in the program folder did the trick that Xcode asked then for installing additional components (probably the ones that were missing) and started up normally after.
Replies
Boosts
Views
Activity
Jun ’19
My Lost iPad
I just checked to see if my lost iPad was found but found out that it didn't even enter lost mode because it has no internet conection. What do i do?
Replies
0
Boosts
0
Views
339
Activity
Apr ’21
Importing a custom programmed swift package
I have made a custom swift package that contains the encoding and decoding functions for my app String Conversion Tool. It is uploaded to GitHub: (https://github.com/Casual3306/ConverterExtra). I do a request for the package (in my apps main project) and the package imports just fine, it is present in the Frameworks, Libraries, and Embedded Content and it is present in Package Dependencies, I have also run: Reset Package Caches and Resolve Package Versions. The package also imports into the designated module as a module but when I try to access any of that modules files like > ConverterExtras > Encoders it is giving me an error saying that This class may not be available in this context. All of the files are in the module package but Xcode isn't finding them for some reason: Xcode version: 13 System: MacOS (Big Sur 11.6)
Replies
2
Boosts
0
Views
3.4k
Activity
Oct ’21
Active Compilation Conditions in Packages
The flags like #if DEBUG ... endif are dependent on the Active Compilation Conditions. So if they say DEBUG the enclosed code block will be executed, otherwise not. Now I have the phenomenon that a #DEBUG block in a Package does not evaluate these conditions. It rather depends on the name of the configuration used to build. So if I build my app with Active Compilation Condition set to DEBUG, but the configuration name is something like App-Release, the DEBUG block in my Package is not added/executed. The ones which are directly in the project are added. Vice versa if the Compilation Condition say RELEASE but the configuration is called App-Debug the blocks in the Package are added to the compilation, but the ones in the project itself are not It suffices that the config name contains the word Debug for this to happen. E.g. the configuration App-Release-Debug (I know that this would be stupid, but it is for demonstrating purposes) will cause the Packages to include the DEBUG
Replies
0
Boosts
0
Views
123
Activity
Mar ’25
Xcode adds the package URL
我想在我的 Mac OS 项目 (Swift UI) 中添加一个 Package dependency Package,但我只能添加一个 Package Collection,我不能只添加一个单独的包依赖包,我想添加 mysql kit 以使我的项目链接到 Mysql 数据库
Replies
1
Boosts
0
Views
70
Activity
Apr ’25
Accessing Resources of other package targets or dependencies using Swift Package Manager
Good day I am developing XRKit framework, which contains the pipeline logic for rendering using Metal, in manifest it has two targets - framework itself in Swift and XRKitDefenitions in C++ and MSL (since Apple forbids us multilingualism in one package). Both targets have Resources folders open in their manifest. When I try to access the test files hello01.txt (Resources for XRKit) and hello2.txt (Resources for XRKitDefenitions) via Bundle.module, I only see hello01.txt and it doesn't read hello2.txt because it's in a different target. How do I properly organize my code with SPM to access the Resources of XRKitDefenitions target? PS When trying to organize XRKitDefenitions as a remote package on GitHub and defining it as a dependency, situation does not change. I understand now that Bundle.module only refers to its Resources. Is there a way to refer to resources that provided other targets or dependencies in the same package?
Replies
1
Boosts
0
Views
2.3k
Activity
May ’22
Determining development/production environment for DeviceCheck
Is there a recommended way to determine whether to use the development or the production server API endpoint for DeviceCheck? For App Attest, the authenticator data includes either appattest or appattestdevelop in a field of the cbor data. For IAPs, we're supposed to try the production endpoint and then retry with the development endpoint if we get a particular HTTP status code. But the docs for DeviceCheck say only to use the development endpoint in development and the production endpoint in production. What are others doing? Is there any clue in the docs that I have missed?
Replies
1
Boosts
0
Views
1.3k
Activity
Mar ’22
PKG Stapling fails post successful notarization
Hi AllI am trying to Notarize and Staple a pkg installer of our app, I am facing issues with staplingMy PKG is product signed with a valid developer certificateFollowing is how i verify itspctl -a -v --type install test.pkg test.pkg: acceptedsource=Notarized Developer IDpkgutil --check-signature test.pkgPackage test.pkg: Status: signed by a certificate trusted by macOSIt was successfully Notarized and status of the request shows success.But when i try Staple the same app it fails with following errorstapler staple --verbose test.pkgProcessing: /Users/admin/Downloads/test.pkgProperties are { NSURLIsDirectoryKey = 0; NSURLIsPackageKey = 0; NSURLIsSymbolicLinkKey = 0; NSURLLocalizedTypeDescriptionKey = Installer package; NSURLTypeIdentifierKey = com.apple.installer-package-archive; _NSURLIsApplicationKey = 0;}Sig Type is RSA. Length is 3Could not find an appropriate code signature in the test.pkg installer package.Cannot download ticket. CDHash must be set.Please let
Replies
0
Boosts
0
Views
836
Activity
Nov ’19
Xcode Hangs on Updating {package-name}
Hey everyone, I recently installed macOS Ventura and when I went to update a package in Xcode, it hangs at Update Package {package-name} every time. Interestingly, the package it hangs on is different each time, but without fail it hangs. I'm no longer able to develop since our project depends on packages, and have been blocked by this for a few hours. Any ideas what the error might be or why it would hang like this? Things I've tried Clearing derived data resetting package cache from file -> packages
Replies
0
Boosts
0
Views
665
Activity
Oct ’22
Testing of swift packages containing bluetooth access impossible?
Hi, I tried to create a swift package using xCode's „Swift Package“ template and tried to write some tests. Unfortunately because my package is all about Bluetooth, the test binary fails with the following message; xctest[9145:288236] [access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothAlwaysUsageDescription key with a string value explaining to the user how the app uses this data. But how to add this key in a Swift Package? Is it really impossible to write and run test cases for a Swift Package containing Bluetooth? I must miss something...
Replies
0
Boosts
0
Views
1.3k
Activity
Feb ’22
Command line tools - headers missing
Hi,In 10.14 last year, Apple stopped installing headers with the command line tools, but it was possible to get them via a separate .pkg installer which they placed at /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg.This appears to be completely missing in 10.15 and I'm unable to compile 3rd party software using the command line tools because of missing headers like zlib and libxml2Anyone know where to get them for macOS 10.15 Catalina?Thanks
Replies
2
Boosts
0
Views
9.6k
Activity
Sep ’19