Search results for

missing package product

51,805 results found

Post

Replies

Boosts

Views

Activity

Can Swift Packages be optional?
I work with a number of enterprise clients and one thing we often do is have various frameworks that are optional depending on what type of build we are doing. A common example being to include a framework that contains an embedded server for testing, demo or debugging purposes. Prior to SPM we would link those frameworks as Optional and run a script phase after the build that removed them from the Frameworks directory of the app if it was a Release build. Now I have an Xcode project that includes a number of SPM package, one of which is an embedded server which in turns references several other packages I'd like to exclude form a Release build. But I cannot figure out how to do this. Can I make the inclusion of a package optional? Or somehow remove it after linking? In Swift I can write #if canImport(MockServer) but I cannot see how to actually make MockServer an optional include. Any ideas?
0
0
952
Jul ’22
Swift Package Manager, target based dependency
I wonder if its possible to get target based dependency using Swift Package Manager without Xcode resolving all dependency in package. I have a package like this: // swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: ReCaptcha, platforms: [ .iOS(.v9) ], products: [ .library( name: ReCaptcha, targets: [ReCaptcha]), .library( name: ReCaptchaRx, targets: [ReCaptchaRx]) ], dependencies: [ .package(url: https://github.com/ReactiveX/RxSwift.git, from: 6.0.0), .package(url: https://github.com/JakubMazur/AppSwizzle.git, from: 1.3.2), ], targets: [ .target( name: ReCaptcha, dependencies: [], path: ReCaptcha/Classes, exclude: [Rx], linkerSettings: [ .linkedFramework(UIKit) ] ), .target( name: ReCaptchaRx, dependencies: [ ReCaptcha, .product(name: RxSwift, package: RxSwift) ], path: ReCaptcha/Classes
0
0
3.1k
Jul ’21
My .pkg is being rejected after notarize it
I'm notarizing my .pkg installer and even stapling the ticket after, but I still get rejected after checking it with the following command:spctl -vvv --assess --type install path/to/my/notarized.pkg path/to/my/notarized.pkg: rejected origin=3rd Party Mac Developer Installer: My Certificate Name (XXXXXXXXX)My pkg is being created with the packages app and then signed using pkgutils. Then it's notarized and after the success response from Apple I'm stapling the ticket into it. The pkg contains an app that is also signed of course.How can I find more information about what's going on? Is there a log somewhere?Thanks in advance.
3
0
739
Apr ’20
Reply to Selling IAP consumables using price tiers above 60
You can work around this by selling multiple packages of consumables. For example, have a consumable at tier 60 (with 100 units) and another consumable at a discount of tier 40 (also with 100 units) (for example) but the second package is not usually offered for sale. Tell the user that if they want to purchase 100 units it will cost tier 60. If they want to purchase 200 units then they can purchase the first 100 units and, for the next 24 hours, they will be able to purchase the next 100 units for tier 40 for a toal price of only tier 60 plus tier 40. For 24 hours after the first purchase show them the tier 40 product rather than the tier 60 product.
Nov ’16
Reply to Xcode 9.2 app uploading broken?
Issue was answered here: https://stackoverflow.com/questions/47644270/xcode-9-2-upload-to-app-store-fails-with-description-length-and-invalid-toolchai/47651392Right-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 it Change value of DTXcodeBuild from 9C40b to 9C40 Re-submit and it will work
Dec ’17
SPC can't load packages from git
A month ago I joined a team and cloned the project from git, and when building the project in Xcode 13 (which I had recently installed) I ran into build issues: I reviewed my integration with git (ssh keys) and after I ran File>Packages>Reset Package Caches everything started working. Not sure whether the package cache reset fixed it, but all is good. Until I just got my new 16 M1 MacBook pro. I did a time machine backup, restored to the new machine, and the same problem is back. Except that I can't get past the issue. The other Xcode source functions work (fetch, change branch, etc.) but no luck with authenticating to pull the packages. I don't consider myself a git guru - I prefer to use GitHub Desktop over the command line, but I use the command line when I need to. In Xcode File>Preferences>Accounts the GitHub account is set up there. So what am I missing? Any help appreciated.
1
0
456
Dec ’21
pkg install but digital signature invalid
I made a pkg install my APP but failed to install to other macbooks because of digital signature invalid warning : Signed.pkg can't be installed because its digital signture is invalid. I signed again,but failed to install again with same warning. bogon:Desktop tanhuang$ productsign --timestamp --sign Developer ID Installer: Tan Huang (NGMD5RC85D) HuionDriver.pkg Signed.pkgproductsign: using timestamp authority for signatureproductsign: signing product with identity Developer ID Installer: Tan Huang (NGMD5RC85D) from keychain /Users/tanhuang/Library/Keychains/login.keychain-dbproductsign: adding certificate Developer ID Certification Authorityproductsign: adding certificate Apple Root CAproductsign: Wrote signed product archive to Signed.pkgbogon:Desktop tanhuang$ codesign -dvvv Signed.pkgSigned.pkg: code object is not signed at allbogon:Desktop tanhuang$ spctl --assess -v Signed.pkgSigned.pkg: rejectedsource=no usable signaturebogon:Desktop tanhuang$ spctl --assess -v --type instal
0
0
1.6k
Sep ’19
Reply to Our app I was rejected, reason: Your app is primarily a book and is therefore not appropriate for the App Store.
If you don't like their rules, you are free to open your own online store and sell your products. Nobody can stop you. And you can be bitter for as many weeks and months as you want, thinking about how much money you have lost except that a stranger doesn't care. I would rather either accept a defeat and move on with my life or adjust the product such that it would be allowed into the store, examining similar products of others.
Feb ’24
Swift Package Manager not building external dependencies correctly
I have created my own SPM through File -> New -> Package Package.swift looks like: // swift-tools-version: 5.10 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription 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, path: Sources), .testTarget(name: MyPackageTests, dependencies: [MyPackage]), ] ) When I run swift build the error says: '.../MyPackage/.build/arm64-apple-macosx/debug/external-package.build/external-package-Swift.h' not found and surely, when I go to directory: .../MyPackage/.build/arm64-apple-macosx/debug/external-package.build/ there are only 2 files in there: module.modulemap & output-file-map.json All source files from external-package a
1
0
897
Aug ’24
Reply to Selecting Provisioning Profile for MacOS app via command line
altool is not involved in provisioning profiles; it just uploads whatever you given it. If there’s a profile missing then that’s related to the way that your app is built. How are you creating the installer package (.pkg) that you pass to altool? Using Distribute App > App Store Connect > Export in the Xcode organiser? Or using xcodebuild? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
May ’22
Xcode package resolution issue
I am running into an issue mainly on my CI, but the issue is present either way. I have a project with multiple Swift Packages as dependancies, most are remote but i have a couple that are local swift packages. On first load of xcode, it will fail to fetch the local packages, if i keep xcode open, around 10 minutes later, it will automatically try and fetch the packages but this time will succeed. Has anybody had this issue? Apart from deploying these packages remotely, is there any other solutions? xcode 13, 13.1, 13.2 all tried and have the same behaviour. Thanks!
0
0
639
Nov ’21
Reply to All live CloudKit user data in Developement environment
Was your app uploaded before or after August 20, 2015?Prior to that date, there was an issue for apps that use the CloudKit container environment set to Development instead of Production; the issue was caused by a missing validation in iTunes Connect for apps not built and uploaded with Xcode, or where “Development” was inadvertently selected when exporting the archive from Xcode.The missing validation was corrected on August 20, and apps uploaded after that date would not pass validation until they were updated to add the “Production” value to the com.apple.developer.icloud-container-environment” entitlement (or to add that entitlement if it missing completely).The current impact on your users depends on what your app does with CloudKit:If the app uses CloudKit to get a stable user identifier, there should be no impact to your app: the identifiers for a given user are identical between Production and Development containers, so it will remain unchanged aft
Jan ’16