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

167,445 results found

Post

Replies

Boosts

Views

Activity

Reply to ld error in Xcode 7 beta 5: "building for OS X, but linking in object file built for (unknown)"
Xcode GM still shown the same error.(null): Building for iOS simulator, but linking in object file built for OSX, file ... for architecture x86_64ld: building for iOS simulator, but linking in object file built for OSX, file '/Users/***.o' for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocation)When are you going to fix issue?
Sep ’15
how to correctly build an app for device and simulator that conditionally uses the correct framework. (not a universal/fat framework)
Have obtained separate frameworks for device and simulator, and I want to integrate those frameworks to achieve the desired functionality. I have included the simulator framework in my carthage framework project. When I am compiling my framework, I am getting the following error building for iOS-armv7 but attempting to link with file built for iOS-arm64 Undefined symbols for architecture armv7: OBJCCLASS$..., referenced from: objc-class-ref in ViewController.o OBJCCLASS$..., referenced from: objc-class-ref in DepedencyInjector.o objc-class-ref in ViewController.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) Can someone please help me resolve this
0
0
316
Jan ’21
Frameworks, Libraries, and Embedded content versus Link Binary With Library
I'm experimenting with creating a Framework and have noticed a difference when dragging and dropping/or adding it into a project. If I create a brand new app and add the Framework then Xcode automatically creates a Frameworks, Libraries, and Embedded section within the app settings general section. The framework gets added with a default embed setting of Do Not Embed, which can be changed to Embed & Sign or Embed without Signing. However, I have an existing app which doesn't already contain a Frameworks, Libraries, and Embedded section section, if I add the framework to that app then Xcode is NOT creating a Frameworks, Libraries, and Embedded section, instead it is adding the framework to the existing Link Libraries with Binary section. However this section does not have the embed box that a Frameworks, Libraries, and Embedded section has. Why is there this difference? And how can
0
0
421
May ’24
Reply to Static libraries into XCFramework
You shouldn't set EXCLUDED_ARCHS, that indicates there's something else wrong here. Let's back up a level to the static libraries, since it sounds like that's what is incorrectly driving you down this path. ... building for iOS Simulator, but linking in object file built for iOS, for architecture arm64. This makes it sound like your static libraries are incorrectly built. Having x86_64 and arm64 in the same binary file is only ok if both of those architectures are intended for the iOS Simulator, with the arm64 version new to supporting the iOS Simulator on Macs with Apple silicon chips. If x86_64 is for the simulator, and arm64 is for a device, that's never been a supported configuration, and will generate the quoted error message in recent Xcode versions. If that's the case, either the static libraries should be directly linked to your framework from source. If they need to be pre-built
Apr ’21
Embedded frameworks architectures check fail with XCode 12.3
Our iOS apps use to embed and sign third party frameworks built for various architectures (i386 x86_64 armv7 arm64). When building an archive, a script phase strips unwanted architectures (simulator ones) from the build. Everything was working fine until XCode 12.3 (updated this morning). Now, what seems to be a Target integrity check always reports the following error for these embedded frameworks (example with GoogleCast framework): error: Building for iOS, but the linked and embedded framework 'GoogleCast.framework' was built for iOS + iOS Simulator. Also, as these frameworks are synced from a server at build time using a script phase, if I delete the frameworks before compiling, there are no errors and the app is built properly. But if the frameworks are already synced, the compilation systematically f
9
0
9.4k
Dec ’20
Reply to Application builded using Dynamic framework not submitted to app store
The main problem is that you've built the framework to include binaries for both the simulator and devices. This isn't officially supported at all (because the iOS simulator is actually macOS platform, while devices are iOS platform). Your framework must contain only ARM architectures for iOS platform.Try building the framework again with just the correct architectures and platform. It's possible all the other errors will go away too.
Dec ’16
Reply to Undefined symbol: type metadata for Swift._StringObject.Variant
I'm also seeing this issue, but for me I suspect it's related to the fact a 'release' iOS and watchOS Simulator builds i386 and x86_64 'Strip' phase output the following error: ld: warning: building for iOS, but linking in object file (/tmp/strip.RgFyCE) built for iOS Simulator Then when linking I get the 'type metadata for Swift.StringObject.Variant' error. Neither the Strip warnings or linking error occur when doing a 'debug' build (because Strip doesn't get called in debug builds). Feedback: #FB7750733
Jun ’20
Linking against embedded frameworks from a System Extension
While trying to get a System Extension version of our VPN client working I realized that the system extensions aren't actually run from their location in the application bundle `<myapp>.app/Contents/Library/SystemExtensions/<myextension>` but are rather copied to `/Library/SystemExtensions/<GUID>/<myextension>`Which is all well and good but it means the running system extension cannot access the frameworks embedded in the application bundle using any @rpath configuration I can think of. Technically it would be possible to hardcode `/Applications/<myapp>.app/...` since by Apple's decree SystemExtensions are only expected to work when contained by applications installed in `/Applications` but that won't fly while doing development.Am I doomed to double embed all the common needed internal frameworks inside both my app and the System Extension or is there some way to set up @rpath which will let the System Extension access my app's embedded frameworks
0
0
447
Oct ’19
Reply to Cannot build archive when using xcodebuild -archive
Guess everyone building a fat lib will have this problem. The arm64 architecture for the simulator (Apple Silicon) conflicts with the arm64 built for a device and LIPO doesn't want to merge. In my build, I just force the architecture to x86_64 and i386 when building for the sim. Now, just need to figure out cocoapods with this changes... Edit: https://stackoverflow.com/questions/63607158/xcode-12-building-for-ios-simulator-but-linking-in-object-file-built-for-ios
Sep ’20