Search results for

missing package product

50,376 results found

Post

Replies

Boosts

Views

Activity

Reply to Unable to import local XCFramework module
There is a workaround by defining a dummy C target that includes the XCFramework. This is explained on the forum: https://forums.swift.org/t/swift-package-and-xcframework-target-for-c-library-where-to-include-the-header/51163/6 You will find a link to a sample repository that show how to architecture the project: https://github.com/withuno/UnoSwift // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: IBANKit, products: [ // Products define the executables and libraries a package produces, making them visible to other packages. .library( name: IBANKit, targets: [IBANKit]), ], dependencies: [], targets: [ // Adds the C module as a dependencies to your C sources .target( name: IBANKit, dependencies: [C], path: Sources/IBANKit ), // Create a dummy c package that uses the XCFramework .target( name: C, dependencies: [IBANChecker-Core], pa
Oct ’23
How to verify signature of a package
In order to verify the signature of an application on disk, we can use SecStaticCodeCheckValidityWithErrors, which works as expected.However, if this is used on a signed package, the following error occurs The operation couldn’t be completed. (OSStatus error -67062.)Error 67062 also represents that an application is not signedIt appears that SecStaticCodeCheckValidityWithErrors only works with binary code or application bundles. To confirm this, calling codesign also fails to verify the signature of a package: codesign -dvvv myPackage.pkg myPackage.pkg: code object is not signed at allHow can we programmatically verify the signature of a package (pkg), without resorting to calling an external process such as pkgutil?
3
0
3.8k
Mar ’16
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
649
Apr ’18
CoreData in SPM Package
I've developed an SPM module in which I have a CoreData model defined as a xcdatamodeld file and I'm having trouble executing tests from the command line, which I want for a CI integration. In the package I load the model by constructing a URL using Bundle.module.url(forResource: ModelName, withExtension: momd). This works when building and testing in Xcode. When executing commands such as swift test from the terminal however, it doesn't, as Bundle.module.url(forResource:withExtension) fails to find the file. Comparing the build artifacts between Xcode's DerivedData and SPM's .build I see that both produce a PackageName_PackageName.bundle but while the Xcode version contains a momd file the SPM version contains an unprocessed xcdatamodeld file. I've tried adding the xcdatamodeld as an explicit resource in the Package.swift file such that the package target now includes resources: [.process(Resources/ModelName.xcdatamodeld)] as an argument. This does not impact the Bundle output. Any ideas ho
1
0
2k
Mar ’23
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.2k
Jul ’19
Reply to SwiftUI image from Bundle.main not working
Hi, mmm it seems an interesting use case, but what are the benefits on this approach? The main bundle should be app single dependency. if we have the needs of pass data to the package itself , probably some sort of dependency injection could be the best option. I'm not sure that put a main.bundle a shared resources container on different framework/package is the best approach, but probably I miss some point. Bye Rob
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’24
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
9k
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
536
Jan ’21
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
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.3k
Jul ’20
Reply to ITMS-90238: Invalid Signature - The main app bundle Tren at path Tren.app has following signing error(s): a sealed resource is missing or invalid
Ignore the second error for the moment. You’ll need to fix the first error before you can tell whether it’s relevant. My standard practice for debugging such problems is: Choose Product > Archive to build an Xcode archive for your product. Use the Xcode organiser to upload that to App Store Connect. Confirm that you get the same error. Use the Xcode organiser to export an App Store compatible installer package (.pkg). Use Transporter to upload that to App Store Connect. Confirm that you get the same error. Now that you’ve confirmed that the installer package accurately reflects the problem, extract your app from that installer package [1]. Use codesign to check its signature: % codesign -d -vvv --deep --strict /path/to/your.app Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] I use a third-party app for this, but you can do it from the command line using the techniques shown in Unpa
Topic: Code Signing SubTopic: General Tags:
Apr ’24