Search results for

“missing package product”

53,795 results found

Post

Replies

Boosts

Views

Activity

Why swift packages are resolved in the DerivedData folder
I just integrated a first Swift package into my app. I was looking for committing it, but found out that the package is downloaded into the DerivedData when it's resolved. I was wondering why that is, and if there's a way around it? Can we specify another folder? In my team we commit the pods with our code (so we can go back and build an old version with the exact versions of the pods). It seems odd to include that in the DerivedData. Also, it is not rare that we need to delete that folder, so it seems not so productive to delete and redownload that each time...
0
0
1.3k
Jul ’19
Swift Package with Metal
Hi, I've got a Swift Framework with a bunch of Metal files. Currently users have to manually include a Metal Lib in their bundle provided separately, to use the Swift Package. First question; Is there a way to make a Metal Lib target in a Swift Package, and just include the .metal files? (without a binary asset) Second question; If not, Swift 5.3 has resource support, how would you recommend to bundle a Metal Lib in a Swift Package?
12
0
9.6k
Jun ’20
Notarizing a packaged app invalid signature
The steps followed were: Signed the .app Notarized the .app inside a .zip Unpacked the .zip Stapled the .app Created a package using Packages Sign the package Notarize the package (both as .pkg and .zip) The result of the final step always comes out to: { tlogFormatVersion: 1, tstatus: Invalid, tstatusSummary: Archive contains critical validation errors, tstatusCode: 4000, tissues: [ tt{ tttseverity: error, tttcode: null, tttpath: App_Signed.pkg.zip/App Signed.pkg/App.pkg Contents/Payload/Applications/App.app/Contents/MacOS/App, tttmessage: The signature of the binary is invalid., tttdocUrl: null, tttarchitecture: x86_64 tt} t] } I read a number of forum posts and guides and this seems to take a hold of all the requirements. Did I miss something?
2
0
582
Jan ’21
Xcode and Supabase Package
Hi All, I'll start by saying i am complete beginner when it comes to coding/ developing. So please be easy on me, im also using AI tools to help and learn so apologies if what im saying doesnt make sense. The error im getting is /Services/SupabaseManager.swift:47:29 Cannot find 'GlobalOptions' in scope From AI tells me 'GlobalOptions' is defined a types.swift file in the supabase package public struct GlobalOptions: Sendable { /// Optional headers for initializing the client, it will be passed down to all sub-clients. public let headers: [String: String] /// A session to use for making requests, defaults to `URLSession.shared`. public let session: URLSession /// The logger to use across all Supabase sub-packages. public let logger: (any SupabaseLogger)? public init( headers: [String: String] = [:], session: URLSession = .shared, logger: (any SupabaseLogger)? = nil ) { self.headers = headers self.session = session self.logger = logger } } From what i can see i have added the supabase package
3
0
187
Apr ’25
Swift Packages + Dependencies + SwiftUI = Fail to Preview
I'm trying to create a project that has the following structure: Package Parser (a library and Resources) Package Posts (a library with SwiftUI and Resources) App itself Isolated, both Packages build and Preview successfully. The App also runs fine. When I add Package Parser to Package Posts as dependency to be able to use its Resources, I can build, test and run the App, but the Preview on Posts stop working. The message from diagnostic is: ld: warning: directory not found for option '-F/Applications/Xcode-beta.app/Contents/SharedFrameworks-iphonesimulator' Undefined symbols for architecture x86_64: nominal type descriptor for Parser.XMLPost, referenced from: Diagnostic - https://developer.apple.com/forums/content/attachment/8effb117-ffad-4ea6-859f-0cf47a12dea8 Here are the packages definitions: let package = Package( name: Parser, platforms: [.iOS(.v14)], products: [ .library(name: Parser, targets: [Parser]) ], targets: [ .targ
3
0
2.4k
Jul ’20
Swift Package Manager + Dependency: How to View Previews?
Assume you have a working swift package that previews a view see the following question on how to achieve that (https://developer.apple.com/forums/thread/651547?login=true&page=1#617372022). Note make sure your view is in the root folder of the package or live previews will not work. Add a dependency to the package. Example shown below The Problem Currently when you add a swift package manager dependency to a swift package in which you want to view a live preview you receive the following error: The Question How do you view live previews of a SwiftUI view in Xcode 12 Swift Package assuming you have a newly created swift package with another swift package as a dependency? Note: This may be a bug on Apple's part and if I do not see a response in a few days will file a bug report in feedback assistant. Live Preview Diagnostics: build aborted due to an internal error: planningFailed(multiple configured targets of 'SwiftyStoreKit' are bein
0
0
1.6k
Jun ’20
Using consumable in app product for multiple products
We have an app where people can buy guides and guides in bundles. They pay x for a single guide and y for a bundle. x always has the same price and so does y.We have over 300 guides and over 100 bundles. When a user purchases a product we store this transaction in our own database because the user can also login to our website and android app. Is it possible to use a consumable product to buy a bundle? So a person buys a consumable product (guide), when we get success we store the purchase in our database and then consume the product.
0
0
675
Apr ’18
Reply to Making my macOS app to be downloadable on website
There’s two parts to this: Packing your app up for distribution Putting it on a web site for folks to download I can’t help you with part 2 because this is not an Apple-specific thing. You’ll need to engage with a third-party web hosting service. With regards part 1, there are three common packaging formats for Mac products: Zip archive Disk image Installer packages If you’re creating a standalone app then I recommend that you use either a zip archive or a disk image. An installer package is overkill. There are instructions for creating a zip archive and a disk image in my Signing a Mac Product For Distribution - https://forums.developer.apple.com/thread/128166 post. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @apple.com
Nov ’20
Reply to Notarization Failed for "The binary is not signed"
So my next question is here we have two schemes, one for the app and the other one for the installer package. That’s an unusual approach. The approach I recommend is based on Xcode archives. That is, you create an Xcode archive and then export from that archive. For the first step, use either Product > Archive or xcodebuild, and for the second use either the Xcode organiser or xcodebuild. This approach has a bunch of advantages: Xcode takes care of re-signing your app for the appropriate export destination. And in the case of the Mac App Store it also creates your installer package. You can fully automate it with xcodebuild. You are left with an Xcode archive containing your build product, which is important for symbolication. For more on this, see Packaging Mac Software for Distribution. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: Notarization Tags:
Jun ’22
How to build an XCFramework from a Swift Package (with Resources)
I have some code that is currently built using Swift Package Manager. It does not have an Xcode project. I want to build an XCFramework from my package, but when I build the package it creates a .o, and xcodebuild -create-xcframework does not seem to support .o files. Also, I have added resources, and now I see there is a .bundle, but I don’t see any way to add the .bundle to an XCFramework. I have tried changing my Package.swift library product to be .dynamic (even though I prefer it to be .static), and that produces a .framework, which I can then convert to an XCFramework, but it does not appear to have my resources (they appear to still be in the .bundle file next to my .o). I have also tried making an Xcode project to wrap my Swift package. It imports my package and links against it and produces a Framework that I can make an XCFramework from, but it also does not have my Resources. All of this was done using Xcode 12 beta.
7
0
1.0.0k
Jun ’20
Reply to ios14 "Notifications are not allowed" ERR
In my case, Build Settings - Packaging - Product Name was not English. Changed to English and worked. It was okay to set the name in other languages in iOS 13 though. I solved this problem with this solution! Thanks!
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’20
Reply to Current bundle does not have a SystemExtensions directory
Can anyone think of anything I have missed which would cause Xcode to continue packaging it as an appex rather than a sysex? Are you signing your container app with this entitlement: com.apple.developer.system-extension.install Are you using the OSSystemExtensionRequest API to install your Network System Extension?
Topic: Code Signing SubTopic: Entitlements Tags:
Replies
Boosts
Views
Activity
Jul ’22
Why swift packages are resolved in the DerivedData folder
I just integrated a first Swift package into my app. I was looking for committing it, but found out that the package is downloaded into the DerivedData when it's resolved. I was wondering why that is, and if there's a way around it? Can we specify another folder? In my team we commit the pods with our code (so we can go back and build an old version with the exact versions of the pods). It seems odd to include that in the DerivedData. Also, it is not rare that we need to delete that folder, so it seems not so productive to delete and redownload that each time...
Replies
0
Boosts
0
Views
1.3k
Activity
Jul ’19
Reply to "Cannot connect to iTunes Store" during testing
I'm getting this error in production and losing subscribers. I haven't done any updates to either the app or the backend recently.
Replies
Boosts
Views
Activity
May ’20
Swift Package with Metal
Hi, I've got a Swift Framework with a bunch of Metal files. Currently users have to manually include a Metal Lib in their bundle provided separately, to use the Swift Package. First question; Is there a way to make a Metal Lib target in a Swift Package, and just include the .metal files? (without a binary asset) Second question; If not, Swift 5.3 has resource support, how would you recommend to bundle a Metal Lib in a Swift Package?
Replies
12
Boosts
0
Views
9.6k
Activity
Jun ’20
Notarizing a packaged app invalid signature
The steps followed were: Signed the .app Notarized the .app inside a .zip Unpacked the .zip Stapled the .app Created a package using Packages Sign the package Notarize the package (both as .pkg and .zip) The result of the final step always comes out to: { tlogFormatVersion: 1, tstatus: Invalid, tstatusSummary: Archive contains critical validation errors, tstatusCode: 4000, tissues: [ tt{ tttseverity: error, tttcode: null, tttpath: App_Signed.pkg.zip/App Signed.pkg/App.pkg Contents/Payload/Applications/App.app/Contents/MacOS/App, tttmessage: The signature of the binary is invalid., tttdocUrl: null, tttarchitecture: x86_64 tt} t] } I read a number of forum posts and guides and this seems to take a hold of all the requirements. Did I miss something?
Replies
2
Boosts
0
Views
582
Activity
Jan ’21
Xcode and Supabase Package
Hi All, I'll start by saying i am complete beginner when it comes to coding/ developing. So please be easy on me, im also using AI tools to help and learn so apologies if what im saying doesnt make sense. The error im getting is /Services/SupabaseManager.swift:47:29 Cannot find 'GlobalOptions' in scope From AI tells me 'GlobalOptions' is defined a types.swift file in the supabase package public struct GlobalOptions: Sendable { /// Optional headers for initializing the client, it will be passed down to all sub-clients. public let headers: [String: String] /// A session to use for making requests, defaults to `URLSession.shared`. public let session: URLSession /// The logger to use across all Supabase sub-packages. public let logger: (any SupabaseLogger)? public init( headers: [String: String] = [:], session: URLSession = .shared, logger: (any SupabaseLogger)? = nil ) { self.headers = headers self.session = session self.logger = logger } } From what i can see i have added the supabase package
Replies
3
Boosts
0
Views
187
Activity
Apr ’25
Swift Packages + Dependencies + SwiftUI = Fail to Preview
I'm trying to create a project that has the following structure: Package Parser (a library and Resources) Package Posts (a library with SwiftUI and Resources) App itself Isolated, both Packages build and Preview successfully. The App also runs fine. When I add Package Parser to Package Posts as dependency to be able to use its Resources, I can build, test and run the App, but the Preview on Posts stop working. The message from diagnostic is: ld: warning: directory not found for option '-F/Applications/Xcode-beta.app/Contents/SharedFrameworks-iphonesimulator' Undefined symbols for architecture x86_64: nominal type descriptor for Parser.XMLPost, referenced from: Diagnostic - https://developer.apple.com/forums/content/attachment/8effb117-ffad-4ea6-859f-0cf47a12dea8 Here are the packages definitions: let package = Package( name: Parser, platforms: [.iOS(.v14)], products: [ .library(name: Parser, targets: [Parser]) ], targets: [ .targ
Replies
3
Boosts
0
Views
2.4k
Activity
Jul ’20
Swift Package Manager + Dependency: How to View Previews?
Assume you have a working swift package that previews a view see the following question on how to achieve that (https://developer.apple.com/forums/thread/651547?login=true&page=1#617372022). Note make sure your view is in the root folder of the package or live previews will not work. Add a dependency to the package. Example shown below The Problem Currently when you add a swift package manager dependency to a swift package in which you want to view a live preview you receive the following error: The Question How do you view live previews of a SwiftUI view in Xcode 12 Swift Package assuming you have a newly created swift package with another swift package as a dependency? Note: This may be a bug on Apple's part and if I do not see a response in a few days will file a bug report in feedback assistant. Live Preview Diagnostics: build aborted due to an internal error: planningFailed(multiple configured targets of 'SwiftyStoreKit' are bein
Replies
0
Boosts
0
Views
1.6k
Activity
Jun ’20
Reply to Apple TV - How can I know my app bundle size?
What is the archive size in the Finder?If you unpack it:- what is the binary size inside?- what is the remaining re-zipped package size without the binary?Maybe I'm missing it, but I don't see a shipped quotient via Xcode.
Replies
Boosts
Views
Activity
Oct ’15
Using consumable in app product for multiple products
We have an app where people can buy guides and guides in bundles. They pay x for a single guide and y for a bundle. x always has the same price and so does y.We have over 300 guides and over 100 bundles. When a user purchases a product we store this transaction in our own database because the user can also login to our website and android app. Is it possible to use a consumable product to buy a bundle? So a person buys a consumable product (guide), when we get success we store the purchase in our database and then consume the product.
Replies
0
Boosts
0
Views
675
Activity
Apr ’18
Reply to Making my macOS app to be downloadable on website
There’s two parts to this: Packing your app up for distribution Putting it on a web site for folks to download I can’t help you with part 2 because this is not an Apple-specific thing. You’ll need to engage with a third-party web hosting service. With regards part 1, there are three common packaging formats for Mac products: Zip archive Disk image Installer packages If you’re creating a standalone app then I recommend that you use either a zip archive or a disk image. An installer package is overkill. There are instructions for creating a zip archive and a disk image in my Signing a Mac Product For Distribution - https://forums.developer.apple.com/thread/128166 post. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @apple.com
Replies
Boosts
Views
Activity
Nov ’20
Reply to Notarization Failed for "The binary is not signed"
So my next question is here we have two schemes, one for the app and the other one for the installer package. That’s an unusual approach. The approach I recommend is based on Xcode archives. That is, you create an Xcode archive and then export from that archive. For the first step, use either Product > Archive or xcodebuild, and for the second use either the Xcode organiser or xcodebuild. This approach has a bunch of advantages: Xcode takes care of re-signing your app for the appropriate export destination. And in the case of the Mac App Store it also creates your installer package. You can fully automate it with xcodebuild. You are left with an Xcode archive containing your build product, which is important for symbolication. For more on this, see Packaging Mac Software for Distribution. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: Notarization Tags:
Replies
Boosts
Views
Activity
Jun ’22
How to build an XCFramework from a Swift Package (with Resources)
I have some code that is currently built using Swift Package Manager. It does not have an Xcode project. I want to build an XCFramework from my package, but when I build the package it creates a .o, and xcodebuild -create-xcframework does not seem to support .o files. Also, I have added resources, and now I see there is a .bundle, but I don’t see any way to add the .bundle to an XCFramework. I have tried changing my Package.swift library product to be .dynamic (even though I prefer it to be .static), and that produces a .framework, which I can then convert to an XCFramework, but it does not appear to have my resources (they appear to still be in the .bundle file next to my .o). I have also tried making an Xcode project to wrap my Swift package. It imports my package and links against it and produces a Framework that I can make an XCFramework from, but it also does not have my Resources. All of this was done using Xcode 12 beta.
Replies
7
Boosts
0
Views
1.0.0k
Activity
Jun ’20
Download IAP .pkgs from Apple’s servers?
I’m updating an old app which uses StoreKit and hosted in-app purchases (multimedia add-ons). The original .pkgs are missing and the only known place they exist intact is on Apple’s servers. The app is able to download and install the IAPs. Is there anyway to save them to the local device?
Replies
0
Boosts
0
Views
369
Activity
Dec ’24