Search results for

Building for iOS Simulator, but the linked and embedded framework ‘XX.framework‘ was built for

186,312 results found

Post

Replies

Boosts

Views

Activity

Xcode 7.2 Failure to build with watch target + embedded framework
Module file's minimum deployment target is watchos2.1 v2.1Our setup is basically like so:Workspace: - App - Main Target - Today Extension Target - Watch Extension Target - AppCoreLogicFramework - iOS app target - iOS extension safe API target - watchOS targetEach of their core framework's targets are named the same as per instructions from Apple about how to properly get this set up, but each target links against the appropriate version. This was working fine until Xcode 7.2 and now I get the error above.Both the Watch Extension Target and the core framework's watchOS target are using Latest watchOS 2.1.Has anyone found a work-around yet? Thanks!
0
0
456
Dec ’15
Reply to Xcode 14.3 CLI command to trigger Rosetta build/run
@Noitham not work.. xcodebuild test -workspace OmniSDK.xcworkspace -scheme OmniAPITests -destination 'platform=iOS Simulator,name=iPhone 14,arch=x86_64' --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:macOS, arch:x86_64, variant:Mac Catalyst, id:00008103-001D69941A79001E } Error: building for Mac Catalyst, but linking in object file built for iOS Simulator...
Jun ’23
Framework loading from outside of App package when running on simulator
When embedding a framework in an iOS application I noticed some differing behavior when running on an actual device and simulator which I couldn't find an explanation for anywhere in the documentation. The embedded frameworks are loaded from outside (adjacent) to the app package when running on simulator whereas they are loaded from within the app package, within the Frameworks directory when running on an actual device. Here's a link to an example project which logs the path at which the dylib within the framework is loaded: https://github.com/R4N/simulatorLoadFrameworkExample The sample outputs are as follows: On simulator: /Users/username/Library/Developer/Xcode/DerivedData/simulatorLoadFrameworkExample-gmxyfcrvpmdfgqepjbbysebvysmh/Build/Products/Debug-iphonesimulator/libsimple.dylib On device: /private/var/containers/Bundle/Application/9D22C144-848A-4E40-B5B3-707B1CFD3151/simulatorLoadFrameworkExamp
1
0
1.3k
May ’21
Reply to iPad attempting to import Journaling Suggestions
As an update to @eskimo 's response, There's a few cases here: Case #1: Building for the simulator. Case #2: Building for a real device, but running on a device where the framework isn't present (eg: iPad, Mac) Case #3: Building for an iOS version before iOS 17.2 where the framework isn't available For case #1: use #if canImport(JournalingSuggestions) like this: #if canImport(JournalingSuggestions) import JournalingSuggestions #endif Then, in your code where you use JournalingSuggestionsPicker, check if you can import it first. This way, if you're not building for a real device, the framework will not be imported. For case #2: Since you're building for a real device, the framework can be imported. Since it's not an iPhone, your app will crash when run. Protect against this by first checking if you can import UIKit, then setting isJournalingSuggestionsAvailable to be true if you're on an iPhone. If you'r
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’24
Reply to Distribute pure swift framework
It sounds like you are linking against the framework but not including the actual framework in your app bundle. These are (unfortunately) separate configuration steps in Xcode. Select your build target in Xcode and look at the General tab. Make sure the framework is included in the Embedded Binaries section.
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Reply to Could not build Xcode Project on my new Mac mini
The problem here is that there are now multiple platforms that use arm64, macOS, iOS, and the iOS Simulator. The file you’re linking was built for one platform (iOS Simulator) and you’re trying to use it another (iOS). This won’t work because arm64 code build for iOS is different from arm64 code build for the simulator. As to how you fix that, it depends. Based on the build transcript it looks like you’re using CocoaPods. If so, you should escalate this via their support channel. They should be able to tell you whether this is a CocoaPods issue or an issue with the actual pod. And if it’s the latter then you’ll need to escalate that wit the pod’s author. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @apple.com
Jan ’21
Reply to Embedded Frameworks within a Message Extension App causing TestFlight submission Errors
Hi mlchild,We haven't submitted to TestFlight yet. Still in developement and am hoping for a solution to this problem so I don't have to also develop a main iOS app as well.To get the message extension to run on the device with linked frameworks is the frameworks must be Embedded in the main host app. Look under the General setting for the main host app target and add your frameworks to the Embedded Binaries list as well as the Linked Frameworks and Libraries list as well. Wes
Topic: App & System Services SubTopic: General Tags:
Aug ’16
iOS14 simulator crashes with CoreNFC framework
Our app uses CoreNFC to scan NFC tags or you can use QR if NFC is not supported. This worked pretty well and we were able to run the app in the simulator for (ui) testing purposes. Until Xcode12 / iOS14 GM builds. In iOS13 (or lower) we wouldn't have any issues running it on a simulator. But in Xcode12 running it on a iOS14 simulator iPhone11 we would get the following: dyld: launch, loading dependent libraries DYLD_SHARED_CACHE_DIR=/Users/xxx/Library/Developer/CoreSimulator/Caches/dyld/19G73/com.apple.CoreSimulator.SimRuntime.iOS-14-0.18A372 DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/xxx/Library/Developer/Xcode/DerivedData/BeeSafe-awnlestrbvesqqbynrhmluzhbcsc/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profil
19
0
7.3k
Sep ’20