Search results for

“missing package product”

52,923 results found

Post

Replies

Boosts

Views

Activity

How to use dependencies in a Swift Package
I created a new Package with Xcode and incorporated a dependency, however when I try to use it, I get a No such module error. How do I use the dependency in the Package sources? In a normal project, I can easily import and use AgileDB. Here's the Package: // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: DBCore, products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: DBCore, targets: [DBCore]), ], dependencies: [ .package(url: https://github.com/AaronBratcher/AgileDB, from: 6.4.0) ], 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 this package
1
0
1.1k
Apr ’22
Impossible to notarize my .pkg ? Product sign: error: Could not find appropriate signing identity for "Developer ID Installer: **** (******)"
Hello, I have a problem to notarize my .pkg. Indeed, I have a certified certificat in .pfx format and I have a Apple Developer Program account. 1 - in the key chain, I request a certificate from a certificate authority in Keychain to have a .csr 2 - I install the .csr to have a .cert than I put in keychain to have a valide certificate 3 - I execute this command : productsign --sign Developer ID Installer: Name_of_developer_ID (Number_of_DeveloperID) name_uncertfied.pkg name_certified.pkg Finaly, I get that answer : Product sign: error: Could not find appropriate signing identity for Developer ID Installer: ** (****) then that there are a valide certificate with wrote Developer ID installer : Name_of_developper_ID (Number_of_DeveloperID). Moreover, when I execute this command : security -v find-identity -p codesigning My certificate don't appears in matching identities then he is in my Keychain et I don't know why ... My Question is, How I can notarize my .pkg ?
9
0
2.0k
May ’21
How to preview with 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 13.2.1 create a new Swift Package Add a simple view with a preview to that swift package (See code below) Attempt to run the preview. code: 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 See errors: ================================== | RemoteHumanReadableError | | LoadingError: failed to load library at path /Users/fishycx/Library/Developer/Xcode/DerivedData/MyLibrary-cwtaivijrddzbkeegisudpueggjw/Build/Intermediates.noindex/Previews/MyLibrary/Products/Debug-iphonesimulator/PackageFrameworks/MyLibrary_-71ED4B7C0CDEC55C_PackageProduct.framework/MyLibrary_-71ED4B7C0CDEC55C_PackageProduct: Optional(dlopen(/Users/fishycx/Library/Deve
1
0
648
Feb ’22
Reply to Stapling is not working for a package installer and hence user receives "Apple cannot check it for malicious software."
A few notes here: You mentioned that you were Notarizing your app and your pkg installer. In this case you just need to Notarize your pkg installer since this is the outer container. You mentioned that you were creating a pkg installer with a 3rd party product; what happens if you create your pkg installer with a native tool like productbuild? Does this improve the situation any? There are example at the bottom of the man page. Matt Eaton DTS Engineering, CoreOS meaton3@apple.com
Topic: Code Signing SubTopic: Notarization Tags:
Aug ’21
Reply to Swift Package can be MAKE_MERGEABLE?
Unfortunately, it's NO. Currently, building and distributing the XCFramework is the only way to make your package as mergeable. When you try to configure the linkerSettings to enable MAKE_MERGEABLE, it will failed building w/ error saying The package product cannot be used as a dependency of this target because it uses unsafe build flags. even though the product was defined as .dynamic If someone has any good solution, please let me know!
Dec ’23
Stapling flat pkg and gatekeeper
Hi. I have an archive package that contains multiple packages. One of the pkg has a network extension app. I normally notarized the top archive package and staple it. However, when I tried to install pkg, I keep encountering gatekeeper. I notarize and stape each of the pkg inside of the archives then create achieve package again and notarize/staple it. But again, I still see the same issues. Keeps seeing the gatekeeper. Am I missing something?
1
0
807
Mar ’22
Which part to be notarized in a pkg, .app or pkg or both ?
Hi, I have to publish a macOS application outside the AppStore, downloadable from another a third-party website. I have to build an app say for example myapp.app and then pack it inside a package installer .pkg file users will download and run pkg to install the app. Which part in the least should be Notarized & signed, the app has to run on catalina 10.14 & newer versions Should .app and .pkg both should be signed and notarized or .pkg is enough to be signed & notarized ? if some one can direct me to any documentation on this subject along with answer, that would be great. Thanks, Ahmed
1
0
601
Feb ’21
How to use dependencies in a Swift Package
I created a new Package with Xcode and incorporated a dependency, however when I try to use it, I get a No such module error. How do I use the dependency in the Package sources? In a normal project, I can easily import and use AgileDB. Here's the Package: // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: DBCore, products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: DBCore, targets: [DBCore]), ], dependencies: [ .package(url: https://github.com/AaronBratcher/AgileDB, from: 6.4.0) ], 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 this package
Replies
1
Boosts
0
Views
1.1k
Activity
Apr ’22
Reply to Unable to upload In-App-Purchase from Xcode to App Store Connect
In Xcode, make sure that the IAPProductIdentifier field in the ContentInfo.plist file is set to your product identifier (the product ID column in App Store Connect). When uploading the archived hosted package, select the app's bundle identifier associated with this product identifier to proceed.
Replies
Boosts
Views
Activity
Jun ’20
Impossible to notarize my .pkg ? Product sign: error: Could not find appropriate signing identity for "Developer ID Installer: **** (******)"
Hello, I have a problem to notarize my .pkg. Indeed, I have a certified certificat in .pfx format and I have a Apple Developer Program account. 1 - in the key chain, I request a certificate from a certificate authority in Keychain to have a .csr 2 - I install the .csr to have a .cert than I put in keychain to have a valide certificate 3 - I execute this command : productsign --sign Developer ID Installer: Name_of_developer_ID (Number_of_DeveloperID) name_uncertfied.pkg name_certified.pkg Finaly, I get that answer : Product sign: error: Could not find appropriate signing identity for Developer ID Installer: ** (****) then that there are a valide certificate with wrote Developer ID installer : Name_of_developper_ID (Number_of_DeveloperID). Moreover, when I execute this command : security -v find-identity -p codesigning My certificate don't appears in matching identities then he is in my Keychain et I don't know why ... My Question is, How I can notarize my .pkg ?
Replies
9
Boosts
0
Views
2.0k
Activity
May ’21
Reply to Expected Expression Error Swiftui
.package(url: https://github.com/binarybirds/swift-html, from: 1.6.0);,import Foundation .product(name: SwiftHtml, package: swift-html);,import SwiftHtml underlined sections have errors like this. what’s wrong with this?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to a mismatch between the mbr and gpt partition maps is not supported
The installer -pkg /Volumes/BOOTCAMP/gdisk-1.0.0.pkg /Volumes/Macintosh HD line was missing -target, so it should be:installer -pkg /Volumes/<LOCATION>/gdisk-1.0.0.pkg -target /Volumes/Macintosh HDOtherwise, thank you KDParker& Frantz. I have now fixed the MBR/GPT and I've begun the re-install of OSX again. Hopefully this time it will work.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’15
How to preview with 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 13.2.1 create a new Swift Package Add a simple view with a preview to that swift package (See code below) Attempt to run the preview. code: 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 See errors: ================================== | RemoteHumanReadableError | | LoadingError: failed to load library at path /Users/fishycx/Library/Developer/Xcode/DerivedData/MyLibrary-cwtaivijrddzbkeegisudpueggjw/Build/Intermediates.noindex/Previews/MyLibrary/Products/Debug-iphonesimulator/PackageFrameworks/MyLibrary_-71ED4B7C0CDEC55C_PackageProduct.framework/MyLibrary_-71ED4B7C0CDEC55C_PackageProduct: Optional(dlopen(/Users/fishycx/Library/Deve
Replies
1
Boosts
0
Views
648
Activity
Feb ’22
Reply to ShouldWaitForLoadingOfRequestedResource not called
To clarify, are you using production keys or not? These can be acquired via the FPS Deployment Package (see <https://developer.apple.com/contact/fps/>). You'll need production keys to attempt playback on the device.
Topic: Media Technologies SubTopic: Streaming Tags:
Replies
Boosts
Views
Activity
Aug ’15
Reply to Pitfalls of manual dependency management in Xcode?
Most useful thread I have found on this issue: Swift Forums: How to prevent resolve packages from stymying developer productivity
Replies
Boosts
Views
Activity
Feb ’24
Reply to Stapling is not working for a package installer and hence user receives "Apple cannot check it for malicious software."
A few notes here: You mentioned that you were Notarizing your app and your pkg installer. In this case you just need to Notarize your pkg installer since this is the outer container. You mentioned that you were creating a pkg installer with a 3rd party product; what happens if you create your pkg installer with a native tool like productbuild? Does this improve the situation any? There are example at the bottom of the man page. Matt Eaton DTS Engineering, CoreOS meaton3@apple.com
Topic: Code Signing SubTopic: Notarization Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to StoreKit fetching product using local config file returns empty array on Mac
What am I missing that is preventing me from fetching the products from my local StoreKit config file on Mac? I was missing a Mac build in TestFlight. Once I added a mac build in TestFlight and got the build approved for external testing, I was able to fetch the products on Mac.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to Swift Package can be MAKE_MERGEABLE?
Unfortunately, it's NO. Currently, building and distributing the XCFramework is the only way to make your package as mergeable. When you try to configure the linkerSettings to enable MAKE_MERGEABLE, it will failed building w/ error saying The package product cannot be used as a dependency of this target because it uses unsafe build flags. even though the product was defined as .dynamic If someone has any good solution, please let me know!
Replies
Boosts
Views
Activity
Dec ’23
Reply to OpenAPIGenerator package requirements have a dependency that causes errors
Is your final product a package built with Swift package manager? Or are you trying to use the OpenAPI stuff from an Xcode project? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’23
Stapling flat pkg and gatekeeper
Hi. I have an archive package that contains multiple packages. One of the pkg has a network extension app. I normally notarized the top archive package and staple it. However, when I tried to install pkg, I keep encountering gatekeeper. I notarize and stape each of the pkg inside of the archives then create achieve package again and notarize/staple it. But again, I still see the same issues. Keeps seeing the gatekeeper. Am I missing something?
Replies
1
Boosts
0
Views
807
Activity
Mar ’22
Reply to Is iTunes Connect broken or down?
Right-Click on the archive file (.xcarchive) > Show Package Contents > Products > Applications > Right-Click on the app file > Show Package Contents > Double-Click on Info.plist to edit itChange DTXcodeBuild's value from 9C40b to 9C40 and it will work.
Replies
Boosts
Views
Activity
Dec ’17
Which part to be notarized in a pkg, .app or pkg or both ?
Hi, I have to publish a macOS application outside the AppStore, downloadable from another a third-party website. I have to build an app say for example myapp.app and then pack it inside a package installer .pkg file users will download and run pkg to install the app. Which part in the least should be Notarized & signed, the app has to run on catalina 10.14 & newer versions Should .app and .pkg both should be signed and notarized or .pkg is enough to be signed & notarized ? if some one can direct me to any documentation on this subject along with answer, that would be great. Thanks, Ahmed
Replies
1
Boosts
0
Views
601
Activity
Feb ’21