Search results for

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

186,342 results found

Post

Replies

Boosts

Views

Activity

Creating release build for framework
Hi, I am developing a dynamic framework using xcode 6.4. I am able to generate the debug build for it which is available in debug-iPhones and debug-iPhonesimulators folders under Products Group. But I am not able to generate the release build for the same. I tried editing the scheme but it didn't work.Also I dont want to go with archive option as it works only in device. I want the release build to work for the simulators as well as for the devices. So, I want the release build to be generated in release-iPhones and release-iPhonesimulators folders, same as in case of debug build.What is the procedure to generate release build for framework?
1
0
495
Jul ’15
Do Universal links work in the Simulator
Hi,So I've been trying to setup universal links and have gotten working on actual devices. However I'm unable to get them to work within the iOS simulator.I've seen conflicting comments about this through some searchs and am hoping I can get a definetive answer.It does say in the documentation that it works:https://developer.apple.com/library/ios/documentation/General/Conceptual/AppSearch/UniversalLinks.htmlThanks.
2
0
5.1k
Apr ’16
Xcode 12 no longer linking to embedded libraries
I have a Mac OS application that's linked against a few dynamic libraries. Previously I hadn't needed to configure anything in particular in XCode. When exporting the application the libraries were automatically copied into the archive in a folder called libs. When running otool on the version of the app created by XCode 11, I see this: @executable_path/../libs/libsqlite3.0.dylib (compatibility version 9.0.0, current version 9.6.0) @executable_path/../libs/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0) I'm now trying to export my app on Big Sur using Xcode 12. With no configuration changes on my behalf, the libraries were no longer exported at all, so the app wouldn't work on any other machine. To try to fix the issue I'm telling Xcode to embed them from the general settings. Xcode then adds them to the copy phase, and they are now exported (albeit in the Frameworks folder): The run path search option it set to: @loaderpath/../Frameworks @executablepath/.
2
0
1.9k
Nov ’20
Reply to Using separate device and simulator frameworks
The easiest way is to use an xcconfig file. Setting one of those up for your project / target is out of scope but once you do:This will link your framework. By default it will select MyFramework_ARM but on Simulator builds it will select MyFramework_Sim.OTHER_LD_FLAGS = $(inherited) -Wl,MyFramework_ARM OTHER_LD_FLAGS[sdk=embeddedsimulator*] = $(inherited) -Wl,MyFramework_SimThe other way to do this is with a duplicate target: one for device and one for Simulator but that is much more complicated to maintain.
Sep ’17
Run Script runs when building for simulator but not when building for actual hardware
Hello, I have a custom script that builds a library needed for integrating Rust code into a project. The script works just fine when I build for the simulator. But, when I switch the target to an actual device (connected via USB) the script does not run. Here is what I have for the Run Script section: # Type a script or drag a script file from your workspace to insert its path. echo Running script... bash ${PROJECT_DIR}/bin/compile-library.sh shipping-rust-ffi $BUILDVARIANT echo ...completed Here is the relevant portion of the log when building for the simulator showing the script running: Here is the relevant portion of the log when building for hardware showing that phase being skipped: I have looked through all the Build Settings, Build Phases, and Build Rules sections with no luck. What I am doing is just a simple test app based upon this article: https://blog.mozilla.org/data/2022/01/31/this-week-in-glean-building-a
2
0
2.1k
Nov ’22
Best Way to Link Frameworks?
I released an App say 1.0 . Now , I am shipping a huge update say 2.0. But in 2.0 , I want to ship a framework of 1.0 , so that end users can fallback in case of any catastrophic issue in 2.0. Now my 1.0 uses a dynamic framework(say version 1.5) and few static libs(say version 1.5) Now my 2.0 app uses same libs and frameworks but different versions of them i.e. dynamic framework(say version 1.8) and static libs(say version 1.8) So my app running is 2.0 , here is what I want When 2.0 is running and 1.0 framework is NOT running , it should use dynamic framework(version 1.8) and static libs(version 1.8) When 2.0 is running and 1.0 framework is running , it should use dynamic framework(version 1.5) and static libs(version 1.5) Here is what I have done so far: Dynamic Framework of 1.0 is compiled and dynamic framework(version 1.5) and static libs(1.5) are not embedded into the framework But when I integrate
4
0
1.4k
May ’23
Reply to Add my own Framework to Target in same Project
The proper way to do this is to click the + button under Linked Frameworks and Libraries. You should see your private framework at the top of the list, in a special section, followed by all the system frameworks. You should not include it under both the embedded binaries section and the linked frameworks section (and the same goes for the GPUImage framework as well). Now as for the search paths, it used to be that you had to do some manual configuration to get that to work, but I'm not sure that's necessary anymore. (My framework is written in Swift, so that might have some different rules than an Obj-C framework.) You might want to look into the Sharing Code between iOS and OS X video from WWDC 2014 for some more information on configuring a framework target.https://developer.apple.com/videos/play/wwdc2014-233/
Nov ’15
Reply to How to create a dylib for iOS project?
[quote='808473021, raunits, /thread/808473, /profile/raunits'] we need to wrap them in a framework [/quote] Right. And there’s no built-in support for that. There are a couple of paths you might take here: Wrap it yourself. Use a mergeable library. The first option is obvious, but surprisingly tricky. You have to manually create a .framework wrapper around your dynamic library. The tricky part [1] is in crafting the correct Info.plist. I generally recommend that you create a test framework using Xcode and then crib the on-disk structure from that. Alternatively, you could update the build process for that “independent codebase” to create a mergeable library. You can then create a framework within your own app and merge that mergeable library into it. IMPORTANT Do this for each of the platforms you support, and remember that the device and the simulator are different platforms. Your best option here is to do it separately for each platform, and the
Dec ’25
QLPreviewController not opening links embedded in PDF
Hi,we are using a QLPreviewController in our App to preview PDF documents.For some reason the Links embedded in the PDF document are not opened in safari, even though the AlertView Leave APPNAME and open this link? is shown and confirmed.In our logs I see the following+[LSApplicationProxy applicationProxyFor*] is not a supported method for getting the LSApplicationProxy for the current process, use +[LSBundleProxy bundleProxyForCurrentProcess] instead.I also added the QLPreviewControllerDelegate to handle the callback shouldOpenUrl - however this callback is never firedfunc previewController(_ controller: QLPreviewController, shouldOpen url: URL, for item: QLPreviewItem) -> Bool { return true; }
3
0
1.5k
Dec ’19
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
Reply to ValidateAppShortcutStringsMetadata error in sample project
I can't reproduce this — I downloaded that sample project, twiddled the code signing settings only, and then built for iOS, iOS simulator, watchOS, watchOS simulator, visionOS, and the visionOS simulator, all with Xcode 16.4. None of them produced this build error. Can you file a bug report with your exact copy of the sample code project and the complete build report so we have more info about the error? To get the build report: Choose View > Navigators > Reports. Select the report associated with your app’s build in the navigator. Using the filter bar at the top of the build report, select the filter buttons for All and All Messages. Click Export in the filter bar to save the detailed build report. Once you have that filed, please post the FB number here so I can locate your report. — Ed Ford,  DTS Engineer
Aug ’25
Chromium Embedded Framework.framework is this a valid framework?
The framework layout doesn't meet Apple's Bundle Guidelines. Everything is in the root of the bundle, with no Versions folder. I suspect it works because the main executable and the Resources folder are in the root. However Code sign doesn't complain about it either, unlike some other incorrectly formatted bundles. I ask because the documentation for bundle structures hasn't been updated since 2017 (https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW1) and I am wondering if there is newer documentation or perhaps Framework bundles no longer need to organized according to that documentation.
1
0
2.4k
Jun ’21