Search results for

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

186,345 results found

Post

Replies

Boosts

Views

Activity

Reply to Unknown class in Compiled Swift Framework embedded in Objective-C Project
>> I drag the archived and exported framework directly into the project to useHaving a project item for the framework isn't enough. You have to tell Xcode that the app target links against the framework, and (assuming you want the framework to be incorporated into the app bundle) you have to tell Xcode to embed the framework.You do these things by selecting the project item in the navigator, then selecting the app target, then in the General tab, add the framework to either the Embedded Binaries section or the Linked Frameworks and Libraries section.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jan ’18
Journaling Suggestions is not available on iOS Simulator
Hey, when I try to run my project on an iOS Simulator, I get the following message: JournalingSuggestions is not available when building for iOS Simulator. and Linker command failed with exit code 1 (use -v to see invocation) Steps to reproduce this behavior: Create a new Xcode project Add the Journaling Suggestions Capability Add the Journaling Suggestions Framework Under Target > Build Phases > Link Binary with Libraries, select “optional“ for JournalingSuggestions.framework Under Target > Build Settings > Other Linker Flags > Debug select „Plus“ and add „iOS or iOS Simulator“ and paste this -Xlinker -weak_framework -Xlinker JournalingSuggestions into the editable field. Do the same for Target > Build Settings > Other Linker Flags > Release This tread is about the same problem, but is already checked as answered. That's why I'm creating this new tread. The last two bul
Topic: Safari & Web SubTopic: General
0
0
252
Oct ’24
Reply to Problems with Workspace containing two iOS Projects and a shared Framework
I'm not sure that it's a limitation, it seems to be a flat-out Xcode bug.Xcode produces different results before the framework has been built for an iOS device, compared with after.Xcode also seems to produce difference results depending on whether you embed first, or link first; and even whether you drag, or use +.And finally Xcode embeds absolute paths rather than ones relative to the build directory.I found a way to consistently get this to work: http://netsplit.com/xcode-two-apps-with-a-shared-private-framework-in-a-workspace
Mar ’16
Reply to Dependency Error in Macbook Pro m1 Xcode 12.5.1 Version in my Other Macbook Air that code is working fine but in Macbook Pro m1 it's giving me this error.
First,we meet compile error:building for iOS Simulator, but linking in object file built for iOS, file 'xxxxx/Pods/xxxx.a' for architecture arm64. Then,found many tutorial told that can be solved by add excluding arm64. Then,we meet this:No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=arm64, VALID_ARCHS=arm64 arm64e i386 x86_64, EXCLUDED_ARCHS=( arm64 )). so,how to fix it ?
Dec ’21
Reply to Cocoa framework is not in Linked Frameworks? and Libraries?
If you created a Cocoa app Xcode project you should not need to add it to the Linked Frameworks and Libraries section. That section is normally used for adding non-Apple frameworks and libraries. None of my Mac apps written in Swift has the Cocoa framework in the Linked Frameworks and Libraries section, and they build and run.Clicking the Add button opens a sheet that will let you add any framework or library in the macOS or iOS SDK to the list of linked libraries and frameworks.
Topic: UI Frameworks SubTopic: AppKit Tags:
Apr ’20
Xcode links a Third Party framework in my Framework and includes it's symbols
I am building a Framework and the code there uses a Third party framework. When I compile my Framework it seems to contain all the symbols from the Third party framework. If I don't add the third party framework to Linked Frameworks and Libraries I get compiler errors about undefined symbols.On the other hand, when I add the third party framework to Linked Frameworks and Libraries it compiles fine. However, in a sample app when I link both my framework and the third party one I get the following runtime warnings: Class is implemented in both, One of the two will be used. Which one is undefined. My question is how do I build my framework with a dependency on another framework without actually linking it? I want to do all the linking on the app level.
1
0
995
Nov ’17
Reply to Using dynamic framework which is linked with static framework
QuinceyMorris, thank you for your reply!Yes, seems like framework B is actually Objective C static library wrapped in framework.Could you please guide me or provide a link to detailed information how to import static library properly inside my Swift framework? I'm still getting Missing required module 'B'. I did the following:Unwrapped framework B, changed binary name from B to B.aAdded all the headers of framework B and the library file B.a to my frameworkSetup Import Paths and Library Search PathsAdded module.modulemap file:module B [system] { header include/B.h export * }Then built my framework successfully and included into Swift demo application to Embedded Binaries.Everything works on my machine, but if I try to build the demo application (which contains my framework), I'm getting Missing required module 'B'.Looks like I need to expose something from library B, but not sure.I was following these manuals:http://iosc
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’18
Reply to CNCopyCurrentNetworkInfo() does NOT work on iOS13beta(17A5492t)
Yes, it doesnt seem to work. The iOS simulator doesnt build, or link. I dont have iOS 13 on my device yet to test that. On a Mac build it didnt work though although it compile and link. Even with WIFI capabilities when i wrote this: connection.activate() connection.connectionStatusHandler = { newStatus in print(newStatus) } let deadlineTime = DispatchTime.now() + .seconds(4) DispatchQueue.main.asyncAfter(deadline: deadlineTime) { print(self.connection.lastConnectionStatus) }The status was null and the handler was not called. Worth logging his I suppose.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’19
Reply to Auto switching between a Device and Simulator Framework
The problem is a little bit more complicated, because you have (at least) two configurations as well: Debug and Release. If your framework is debugged and rock-solid, then you can use the Release configuration in other applications during debugging, but if you want to debug into the framework that's not a great approach.You can solve this problem as well as your device/simulator problem if you include the framework project as a subproject of each other application that needs it. That way the correct configuration/architecture gets built for whatever you're doing at the moment.In regard to your original question, I can only tell you what other people are doing, even though it's something that's explicitly unsupported by Apple. Some 3rd party iOS developers (including Microsoft) build the Intel architectures and ARM architectures separately, then 'lipo' them into a single fat framework. It happens to work for now, though of course I'm not r
Topic: UI Frameworks SubTopic: AppKit Tags:
Jun ’15
Bitcode error on Xcode10 when doing an export/archive of app with embeded Framework
When building our project for our enterprise we come across this issue with bitcode:Failed to verify bitcode in TestNetwork.framework/TestNetwork:nerror: Cannot extract bundle from /var/folders/v2/7k_55wk96ld930ygn2rqh06jc8y98m/T/IDEDistributionOptionThinning.qbT/Payload/TestApp.app/Frameworks/TestNetwork.framework/TestNetwork (i386)We are manually installing the framework to improve build times. We have the suggested run script in our build phase and this was fine with Xcode 9.4.1.I added below Run Script also : http://ikennd.ac/blog/2015/02/stripping-unwanted-architectures-from-dynamic-libraries-in-xcode/APP_PATH=${TARGET_BUILD_DIR}/${WRAPPER_NAME} # This script loops through the frameworks embedded in the application and # removes unused architectures. find $APP_PATH -name '*.framework' -type d | while read -r FRAMEWORK do FRAMEWORK_EXECUTABLE_NAME=$(defaults read $FRAMEWORK/Info.plist CFBundleExecutable) FRAMEWORK_EX
1
0
1.5k
Sep ’18
Reply to CFBundleSupportedPlatforms issue
Well in my case, just now, I was using one of my own frameworks (built through Carthage). When I stopped having Carthage build it, and just dropped the framework project into my project's workspace, I got past this error.Note that I was still using other Carthage built frameworks, just my own was freaking out for some reason?Additionally, once I had my Framework Project in my Workspace, I adjusted it's framework search paths to point to an absolute filesystem location of the Projects Carthage's Build/iOS (recursive) folder.--- Later ---nevermind, I had to re-archive the app and now the error is back again, but for a different framework I don't control. =(---- Later Still ----Ok, I got it! For me anyway, I needed to remove the dSYM files that Carthage generated from the Apps Resource Bundle.
Oct ’15
Reply to Found an unexpected Mach-O header code: 0x72613c21
Removing Fabric and Crashlytics also worked for me. The main issue seems to be the static framework. Their frameworks contain static library binary instead of dylib, which seems to be no longer supported(?) in Xcode 8 since iOS 8 (embedded) dynamic frameworks are supported. Well, I'm guessing here though. They should provide us dynamic frameworks that can be embedded for iOS 8 or above. Then, this problem will go away.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’16
Reply to Automatically manage signing not working
Just like @blaap, I too wasted most of a full day on this. My app uses a framework I built. The framework uses 'default build settings' including the Skip install set to NO. I wanted to use the automatic signing but that always produced an archive with the Distribute Content that @joerick mentions. It had been a while since I setup an app in the store so I forgot that it should say Distribute App. Once I followed @joerick advice, I quickly found and changed Skip install to YES and BINGO, I have Distribute App and Validate App both enabled!! Apple would do well to have some tips and suggestions so others don't burn up a day on this crap since the framework used default settings. FWIW, I also unchecked Allow Archiving for Simulator because that seems to disable the Distribute App and Validate App options. Instead, I just created an archive for Any iOS
Nov ’24
Playground with a framework that links to a static library
I have a very simple Xcode 7 OS X workspace that includes a custom framework project (I called it MySQLKit) and a Swift playground. I can build the framework and use the public functions from the playground: very cool.I'd like to include a static library in the framework (libmysqlclient.a in this case, but this problem occurs with seemingly any library).As soon as I link the library into the framework, either through the Link Binary With Libraries build phase or through Other Linker Flags using -lmysqlclient, I start getting these errors in the playground:Playground execution failed: error: Couldn't lookup symbols: _MySQLKitVersionNumber __TF8MySQLKit11testIntegerFT_SiThis happens regardless of whether I actually use any symbols from the static library: simply linking it into the framework seems to make the framework ununsable from the playground.Not sure whether this is expected behaviour or a bug?
3
0
3.0k
Jun ’15
Reply to Workspace frameworks don't seem to update
Thank you for that, those steps have been very helpful.Went through these steps to Clean Build Folder on each project separately and then the workspace, then rebuilding the app scheme in the workspace. Same errors but command-clicking showed that there was a namespace thing (I think it's a namespace thing anyway); I had an xcdatamodel in which I accidentally used the same Entity names as the classes that were showing errors. Since I don't actually care about CoreData yet (I did, but changed my mind), I deleted the model file and voilà, the errors disappeared.However, I have noticed that there are still issues with the workspace picking up the changed API—but, at least now, it's only the API that I've changed in the last few minutes, not the earlier changes.After I got the Core Data stuff removed, it was building fine. I realized that I needed to make a minor change to the API—needed to add a method to one of the classes in the Model—so I made the change, then built the Generic schem
Apr ’17