Search results for

“missing package product”

52,931 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
967
Jul ’22
Missing ModuleMap with Docbuild
When performing xcodebuild docbuild I'm getting an error that I'm missing a module map for one of my Swift Packages I've included in the project. This is because I want to build the docbuild for iOS only, but have the Swift Package as a macOS only import fatal error: module map file '/Users/administrator/Library/Developer/Xcode/DerivedData/AppName/Build/Intermediates.noindex/Build/Intermediates.noindex/GeneratedModuleMaps-iphoneos/SQLite.modulemap' not found The docbuild is as follows xcodebuild docbuild -scheme XXX -derivedDataPath ${DD_LOCATION} -configuration Release -sdk iphoneos SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES BUILD_DIR=${WORKSPACE}/build DEVELOPMENT_TEAM=XXX The Swift package mentioned is added as macOS only with an optional linkage and I have excluded the paths from source files which makes me able to run the app via xcode. Is there anything else I should be doing to exclude this from being added to the iOS side of our project? Thanks in a
1
0
1.7k
Feb ’24
Very Strange TVOS IBDesignables Errors in iOS Package
I have developed this shared package - https://github.com/RiftValleySoftware/RVS_Spinner. It works fine. In the package test harnesses (3 iOS apps), it works great, and also, the IB storyboard renders the control (It's an IBDesignable). However, when I include it as a package in another app (I can't share the source), I get these really weird render failure messages:Error: 'UIPickerView' is unavailable in tvOS And so on. There's a bunch of not available in tvOS errors. Well...DUH. It's an iOS package and utility, and leverages a lot of things like haptics. The package explicitly states that it is iOS(12), and I can't see any indication of why my storyboard is insisting on trying to render as tvOS. What am I missing?
2
0
1.2k
Sep ’20
Error Missing required module 'RxCocoaRuntime' in xcframeworks
Hi. I have a xcframework that has a dependency on 'RxSwift' and 'RxCocoa'. I deployed it using SPM by embedding it in a Swift Package. However when I import swift package into another project, I keep getting the following error: Missing required module 'RxCocoaRuntime How can I fix this? Below are the steps to reproduce the error. Steps Create Xcode proejct, make a dependency on 'RxSwift' and 'RxCocoa' (no matter doing it through tuist or cocoapods) Create XCFramework from that proejct. (I used commands below) xcodebuild archive -workspace SimpleFramework.xcworkspace -scheme SimpleFramework -destination generic/platform=iOS -archivePath ./SimpleFramework-iphoneos.xcarchive -sdk iphoneos SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES xcodebuild archive -workspace SimpleFramework.xcworkspace -scheme SimpleFramework -archivePath ./SimpleFramework-iphonesimulator.xcarchive -sdk iphonesimulator SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES xcodebuild -create-xcframe
0
0
305
Mar ’25
SwiftData model in Swift package
Hi, I am looking for information on how to setup a ModelContainer for a Swift app when the SwiftData model is located in a Swift package. Let's say the model code resides in a package called DomainModel. That package was added target's embedded content and the model types are used to init the model container using the modelContainer(for:) view modifier on the ContentView of the app. This crashes the app on startup with a EXC_BAD_ACCESS code=2. When copying the model code from the package directly into the app, the app starts just fine. I kindly ask for a code sample or any information about how to setup the model container when using a model from a Swift package. Thanks in advance and I am looking forward to replacing CoreData 🙂
6
0
2.5k
Jun ’23
subprojects to swift packages ?
I have an app I'm returning to after a several years I'd like to freshen up, but am daunted by the changes since; 2018 WWDC - session 415: behind the scenes of Xcode Build process, points out the many changes just that year.It's Objective-C only, features several sub-projects both private and GitHub, whose .xcodeproj file I'd had dragged in as the then practice, which my main project has as dependencys; all was good.But have few but widespread problems:* IB plugins* framework headers not getting found* sub-builds failing - deprecated or now not viable code* what to do re: BWToolkit which appears stagnant?The 2nd is odd as they build ok invividually.So my question is to whether to continue the sub-project route, or try migration to modernize like envelop them as swift packages. This is not all viable as some have assets, but otherwise, what to do? I think the missing header issue is due to naming:i.e. `import foo.h` should now be `import <MyFramework/foo.h>`.But I suspect some m
2
0
1.9k
Jun ’20
Reply to Lock icon not visible in .pkg installer
My apologies, I didn't notice that packagesbuild was a third-party tool, I took over the project from a different developer, so I'm not a 100% familiar with the tooling yet. I had a look at the link you sent and managed to get it working by running the productbuild command on the .pkg file generated by packagesbuild. productbuild --sign Developer ID Installer: [...] --package com.optimidoc.cloudclientsigned.pkg com.optimidoc.cloudclient.distribution.pkg I suspect that the problem was in the fact that packagesbuild generates a component package (similar to pkgbuild) rather than a product archive like productbuild does, but I haven't done any testing to verify it. Thank you for pointing me in the right direction.
Topic: Code Signing SubTopic: General
Jun ’24
Consumable Product Refund Abuse
Hello, We are a mobile game company, We have encountered an issue concerning the refunds of consumable products purchased through our app. The issue arises when some Apple users request refunds after purchasing these products, and Apple approves these refund requests even if our users have already consumed it. This situation leads to financial losses and creates an unfair experience among users. We are using App Store Server Notifications V2. So how can we prevent Refunding if user used already our product
3
0
1.6k
Mar ’24
Reply to SwiftUI Preview Runtime linking failure
Thank you for bearing with me! This was key missing information. I can reproduce the problem in a small sample project using a package structure like you described here. I'll update the feedback and see what we can do with the build system and linker teams to figure this out.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’25
how to set traits for a package in xcode
https://github.com/swiftlang/swift-evolution/blob/main/proposals/0450-swiftpm-package-traits.md as this proposal introduce package traits, how can i set traits for a package in xocde, for example an ios app project(without Package.swift)
Replies
1
Boosts
0
Views
239
Activity
Sep ’25
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?
Replies
0
Boosts
0
Views
967
Activity
Jul ’22
Reply to Xcode Build service error due multiple references with the same GUID
Getting the same error in xcode as well including package missing resolving it through clearing deriveddata doesn't help followed by restart and clearing cache Multiple commands produce 'some aws.json at given path' it was a running project.
Replies
Boosts
Views
Activity
Dec ’23
Missing ModuleMap with Docbuild
When performing xcodebuild docbuild I'm getting an error that I'm missing a module map for one of my Swift Packages I've included in the project. This is because I want to build the docbuild for iOS only, but have the Swift Package as a macOS only import fatal error: module map file '/Users/administrator/Library/Developer/Xcode/DerivedData/AppName/Build/Intermediates.noindex/Build/Intermediates.noindex/GeneratedModuleMaps-iphoneos/SQLite.modulemap' not found The docbuild is as follows xcodebuild docbuild -scheme XXX -derivedDataPath ${DD_LOCATION} -configuration Release -sdk iphoneos SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES BUILD_DIR=${WORKSPACE}/build DEVELOPMENT_TEAM=XXX The Swift package mentioned is added as macOS only with an optional linkage and I have excluded the paths from source files which makes me able to run the app via xcode. Is there anything else I should be doing to exclude this from being added to the iOS side of our project? Thanks in a
Replies
1
Boosts
0
Views
1.7k
Activity
Feb ’24
Very Strange TVOS IBDesignables Errors in iOS Package
I have developed this shared package - https://github.com/RiftValleySoftware/RVS_Spinner. It works fine. In the package test harnesses (3 iOS apps), it works great, and also, the IB storyboard renders the control (It's an IBDesignable). However, when I include it as a package in another app (I can't share the source), I get these really weird render failure messages:Error: 'UIPickerView' is unavailable in tvOS And so on. There's a bunch of not available in tvOS errors. Well...DUH. It's an iOS package and utility, and leverages a lot of things like haptics. The package explicitly states that it is iOS(12), and I can't see any indication of why my storyboard is insisting on trying to render as tvOS. What am I missing?
Replies
2
Boosts
0
Views
1.2k
Activity
Sep ’20
Error Missing required module 'RxCocoaRuntime' in xcframeworks
Hi. I have a xcframework that has a dependency on 'RxSwift' and 'RxCocoa'. I deployed it using SPM by embedding it in a Swift Package. However when I import swift package into another project, I keep getting the following error: Missing required module 'RxCocoaRuntime How can I fix this? Below are the steps to reproduce the error. Steps Create Xcode proejct, make a dependency on 'RxSwift' and 'RxCocoa' (no matter doing it through tuist or cocoapods) Create XCFramework from that proejct. (I used commands below) xcodebuild archive -workspace SimpleFramework.xcworkspace -scheme SimpleFramework -destination generic/platform=iOS -archivePath ./SimpleFramework-iphoneos.xcarchive -sdk iphoneos SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES xcodebuild archive -workspace SimpleFramework.xcworkspace -scheme SimpleFramework -archivePath ./SimpleFramework-iphonesimulator.xcarchive -sdk iphonesimulator SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES xcodebuild -create-xcframe
Replies
0
Boosts
0
Views
305
Activity
Mar ’25
SwiftData model in Swift package
Hi, I am looking for information on how to setup a ModelContainer for a Swift app when the SwiftData model is located in a Swift package. Let's say the model code resides in a package called DomainModel. That package was added target's embedded content and the model types are used to init the model container using the modelContainer(for:) view modifier on the ContentView of the app. This crashes the app on startup with a EXC_BAD_ACCESS code=2. When copying the model code from the package directly into the app, the app starts just fine. I kindly ask for a code sample or any information about how to setup the model container when using a model from a Swift package. Thanks in advance and I am looking forward to replacing CoreData 🙂
Replies
6
Boosts
0
Views
2.5k
Activity
Jun ’23
subprojects to swift packages ?
I have an app I'm returning to after a several years I'd like to freshen up, but am daunted by the changes since; 2018 WWDC - session 415: behind the scenes of Xcode Build process, points out the many changes just that year.It's Objective-C only, features several sub-projects both private and GitHub, whose .xcodeproj file I'd had dragged in as the then practice, which my main project has as dependencys; all was good.But have few but widespread problems:* IB plugins* framework headers not getting found* sub-builds failing - deprecated or now not viable code* what to do re: BWToolkit which appears stagnant?The 2nd is odd as they build ok invividually.So my question is to whether to continue the sub-project route, or try migration to modernize like envelop them as swift packages. This is not all viable as some have assets, but otherwise, what to do? I think the missing header issue is due to naming:i.e. `import foo.h` should now be `import <MyFramework/foo.h>`.But I suspect some m
Replies
2
Boosts
0
Views
1.9k
Activity
Jun ’20
Swift Package Issue
Hi, I am trying to install a swift package and I keep getting this error. Error When I install it any other way, I get this error: Error Any ideas on how to fix it?
Replies
4
Boosts
0
Views
2.0k
Activity
Aug ’21
Reply to Lock icon not visible in .pkg installer
My apologies, I didn't notice that packagesbuild was a third-party tool, I took over the project from a different developer, so I'm not a 100% familiar with the tooling yet. I had a look at the link you sent and managed to get it working by running the productbuild command on the .pkg file generated by packagesbuild. productbuild --sign Developer ID Installer: [...] --package com.optimidoc.cloudclientsigned.pkg com.optimidoc.cloudclient.distribution.pkg I suspect that the problem was in the fact that packagesbuild generates a component package (similar to pkgbuild) rather than a product archive like productbuild does, but I haven't done any testing to verify it. Thank you for pointing me in the right direction.
Topic: Code Signing SubTopic: General
Replies
Boosts
Views
Activity
Jun ’24
Consumable Product Refund Abuse
Hello, We are a mobile game company, We have encountered an issue concerning the refunds of consumable products purchased through our app. The issue arises when some Apple users request refunds after purchasing these products, and Apple approves these refund requests even if our users have already consumed it. This situation leads to financial losses and creates an unfair experience among users. We are using App Store Server Notifications V2. So how can we prevent Refunding if user used already our product
Replies
3
Boosts
0
Views
1.6k
Activity
Mar ’24
Reply to 10.12.1 B3 "Could not be verified" error
Hi MacDoc...That is a good point..!!I have altered the timezone, and will redownload (again) and see what happens.I tried to install the three pkg files manually, but all I got were errors telling me things were missing, so that didn't work either.Thanks for your reply.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’16
Reply to Pre-approving network extension VPN permission with MDM
I missed the part where after loadAllFromPreferences you can check which one is connected, and re-connect to that.. This fixes my bug In pkg preinstall and postinstall we also now quit app and stray running tunnel if any + remove duplicate profiles
Replies
Boosts
Views
Activity
Oct ’24
Reply to SwiftUI Preview Runtime linking failure
Thank you for bearing with me! This was key missing information. I can reproduce the problem in a small sample project using a package structure like you described here. I'll update the feedback and see what we can do with the build system and linker teams to figure this out.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’25
Swift Packages: Custom Fonts
I'm building a package for my custom fonts. But not be able to register custom .ttf file in a Swift Package. Any recommendations for this?
Replies
0
Boosts
0
Views
935
Activity
Jul ’20