Search results for

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

186,348 results found

Post

Replies

Boosts

Views

Activity

Build Error with Umbrella Embedded Static Libraries
We have a custom static library CMFLibrary which utilized Firebase pods. The library builds successfully however, embedding CMFLibrary in our test app produces the following build error e.g. ViewController class -> import CMFLibrary (build error: Missing required module 'Firebase'. I have tried different build settings etc per suggestions on SO and other web sites. Same error each time. This is a critical issue. Help would be appreciated. D
0
0
293
Mar ’20
JournalingSuggestions Crashes on iOS 18 Simulator with Xcode 16.2 – Linker Error
I’m running into an issue while implementing JournalingSuggestions with Xcode 16.2 and the iOS 18 simulator. My code builds and runs fine on a physical device, but it consistently crashes on the simulator and in Xcode previews. I’ve tried several workarounds, including weak linking and solutions from this post (746843), but I’m still hitting a wall. Here’s what’s happening: I get a warning: JournalingSuggestions is not available when building for iOS Simulator. This is followed by a build error: Linker command failed with exit code 1 (use -v to see invocation). What I’ve Tried: Weak linking the JournalingSuggestions framework. Applying fixes from this post (746843), such as cleaning the build folder and using weak link. Deleting Derived Data and rebuilding. Testing on a physical device (works fine). My Setup: Xcode Version: 16.2 Simulator: iOS 18 Build Success: Works
1
0
319
Mar ’25
Unable to locate certain xcuitest elements when using simulator build
I have built an .app for use on iOS simulator on appium. My tests fail because they are unable to locate specific xcuitest elements which are missing from a collection view. If i build an .ipa for real device, then the collection view loads these xcuitest elementsI have logged this with the Appium project but they tell me its a third party issueI have done a comparison of the app source code on the simulator app vs the .ipa real device app and found that there are collection views missing see https://www.diffchecker.com/PF4y3OhUI have built the simulator app via the following command: e.g.xcodebuild -workspace '/Users/.../apps_ios/<app>.xcworkspace' -scheme 'dev' -arch x86_64 -sdk iphonesimulator10.3I am trying to locate the ‘Sort’ and ‘Filter’ buttons as per screenshots attached Simulator build:https://user-images.githubusercontent.com/1721580/27862852-a6dce43e-6187-11e7-8874-b36d00152b9b.pngReal device build:Here I am able to insp
0
0
369
Jul ’17
Linking dependencies for iOS
Hello!I'm trying to use dlib on iOS. So, I found a tutorial which describes how I can do this. I did everything exactly with this recommendation, including adding in the Xcode Other Linker Flags these items:/usr/lib/liblapack.dylib /usr/local/lib/libjpeg.dylib /usr/local/lib/libpng.dylib /usr/lib/libcblas.dylibBut after my try of building I get Xcode linker error which says:ld: building for iOS simulator, but linking against dylib built for OSX, file X for architecture x86_64Where X - every library which listed above.So, is this a correct building and using of dlib for iOS? And how can I use(or build) these libraries on iOS?Any help will be very useful!
0
0
716
Jul ’16
Reply to Problem building Watch Extension in Xcode 12 beta 3
I'm getting the same error. I have CLANG_MODULES_AUTOLINK set to NO, both WatchConnectivity and WatchKit frameworks linked explicitly (the extension is written in Objective-C). Turned out libWKExtensionMainLegacy.a in Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator7.0.sdk supports x86_64, i386, and arm64. $ lipo -archs libWKExtensionMainLegacy.a x86_64 arm64 i386 However, according to the link https://developer.apple.com/forums/thread/130684, the configuration might not be correct. Having x8664 code is not sufficient to distinguish if a binary is intended for the iOS Simulator, a macOS app, or a Mac Catalyst app. Combing built binaries across different destinations (which includes the simulator vs. device binaries) is not a supported combination -- there is no Apple platform where ARM code and x8664 code in the same binary is a correct configuration. Stripping the arm64 from the binary didn't help (just did it for testing, it could
Jul ’20
Reply to How to share lib between phone app & WatchOS2 extension?
We got this running. Xcode Beta 6 under El cap.We are using a dynamic lib. Added a iOS Framework and a Watch Framework.Files have to be added to each target.We were even able to add external frameworks from carthage.In the Lister example you will find a configuration of how to use a framework in a watchOS 2 app.All we needed to do is to add the Framework in Embedded Libraries in the extensions build config.And we changed the product name of the watch lib to be the same as the ios framework.So basically the framework can use e.g. Alamofire and will automatically use Alamofire for watchOS in the watch target and Alamofire for iOS in the iOS target.(As they have the same product name for both targets)
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’15
Reply to Both ios-x86_64-simulator and ios-arm64-simulator represent two equivalent library definitions. XCFramework for iOS simulator on M1 & Intel Mac? How?
So I ended up using lipo to combine the Simulator builds into one (M1 and Intel), then created the XCFramework and everything worked fine. Every post from Apple on the developer forums seems to strongly recommend against using lipo but I could not find another way to make this work. Since I build OpenSSL from Terminal, I'm not sure if there is an option I could use to build for both M1/Intel iOS simulators in one shot. Do command line tool provide a way to build for the Intel simulator even on an M1 Mac? I built the library for the simulator on the Intel machine and Air dropped it over so I could lipo them together. Feels like this should be easier though.
Topic: App & System Services SubTopic: General Tags:
Aug ’22
Embedded Frameworks within a Message Extension App causing TestFlight submission Errors
I'm running into a problem that I'm not quite sure how to solve.I have a stand alone message app that has a few embedded frameworks that I have written. In a normal app, those frameworks can live within the container app, and the extensions can reference them. With a message app, the dummy container app has no way to manage frameworks/linked libraries, so the message extension needs to manage them. This means the .appex now contains a framework folder within it.When attempting to upload the binary, TestFlight returns the following error:ERROR ITMS-90205: Invalid Bundle. The bundle at 'XXXXXX.app/PlugIns/XXXXXXX.appex' contains disallowed nested bundles. I'm not exactly sure how to manage the frameworks in this particular heirarchy to please the TestFlight Gods and get the app processed.Has anyone successfully submitted a standalone message app with embedded frameworks? Should I file a rdar?
24
0
9.6k
Aug ’16
App with embedded framework rejected due to ITMS 90205 (contains invalid nested bundles)
Hi. We're attempting to submit an app to the app store but is being rejected due to ERROR ITMS-90205: Invalid Bundle. The bundle at [...] contains disallowed nested bundles. There is indeed an app and a framework bundled together. I'm not sure if I've set it up incorrectly or if there's some sort of trick you need to do to get it accepted if you have an app that depends on a custom framework.Both app and framework are written purely in Objective-C.The app compiles without warnings and installs and runs correctly on devices in both Debug and Release configurations. The Archive is also created without issue. It's only when we submit to the App Store that it complains about nested bundles. The workspace setup is as follows:ourApp Target -> General -> Embedded Binaries -> ourFramework.framework -> Linked Frameworks and Libraries -> ourFramework.framework, Status = Required -> Build Phases -> Link Binary with Libraries -> ourFra
1
0
5.9k
Jan ’16
Does this warning have any impact on App Store signing -- "was built for newer iOS version (8.0) than being linked (7.0)"
Hi,I have application, where the deployment target is 7.0. And using 1 third party lib, which is built based on 8.0. And then I am getting following linker warning:ld: warning: object file (/Users/xxxxxxx/Build/Products/Debug-iphoneos/xxxxxFramework.a(polymorphic_oarchive.o)) was built for newer iOS version (8.0) than being linked (7.0)But my application continues to work good. So let me know does this warning have any significance to apple certification process?Thanks.RahulG
0
0
562
Mar ’16
iOS Simulator
I installed the latest version of Xcode and its Simulators. It takes about an hour for the simulator to load and launch. And when it does run, the entire computer's response to any click or keyboard input is very slow. Is anyone else having this problem? I am running on a late 2013, 21.5 8GB iMac. The simulator is running as iOS 14.
0
0
325
Sep ’20
iOS simulator is slow
Hello!Last month I bought a new MacBook Pro 13 (early 2015, Core i5 2.7 GHz, 8 Gb RAM, 256 Gb SSD). After clean installation of Xcode 7.3.1 I get simulator that is working slowly. I can see it even in built-in applications like Calendar or Settings. When I'm trying to scroll lists in these applications, they freeze and scroll jerky.I've tried to toggle on/off slow animation mode, but it has no effect.Have anybody this problem? Or may be my MacBook Pro is not enough powerfull for iOS developing?
1
0
2.1k
Jun ’16
xCode Cloud Archive XCFramework for Simulator and iOS (Universal)
Hello, I'm trying to port my framework CI to xCode Cloud and i have to create the release build that contains iOS ios-arm64 and ios-arm64_x86_64-simulator architectures for being able to build the XCFramework on iOS devices and Simulators. I looked in the Archive Action in the Xcode Cloud options but the Platform selector has iOS but not not Simulator. Currently i achieved the results that i needed by adding a ci_scripts/ ci_pre_xcodebuild and working with old fashion xcodebuild archive command and works fine . Can i achieve what i want without the sh script by using predefined actions from Xcode Cloud ? Thanks, Florin
1
0
1.6k
Jun ’22
Xcode fails to attach to process when building to the Simulator
When trying to build and run our iOS app on the simulator we're hitting the following error: Could not attach to pid: XXXXX failed to get reply to handshake packet within timeout of 6.0 seconds I've included some more details on our project/setup below: We're working on a large project with multiple schemes / app targets. The error only affects one of our targets - however the dependencies between the problematic target and the others are very similar. The issue only affects building to the simulator; building to a physical device works fine. Scheme configuration is the same across all targets. We've faced this issue on multiple versions of Xcode, from 15.x through to the latest 16.3 RC. We've tried a number of workarounds, some of which work intermittently for some colleagues - but none of which have provided a durable solution. These include varying combinations of: Setting the IDEPreferLogStreaming=YES environment variable Unchecking Debug Executable un
4
0
282
Mar ’25