Search results for

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

186,349 results found

Post

Replies

Boosts

Views

Activity

Reply to Can an xcframework embed an xcframework?
With nested frameworks, I believe I used to get something like ERROR ITMS-90205: Invalid Bundle. The bundle at 'yourapp.app/Frameworks/A.framework' contains disallowed nested bundles.... when submitting the Appstore build to Apple. However, with XCFrameworks this doesn't seem to be the case anymore? Unless I embed and sign in the xcframework within my framework, it fails to run on device. It might fix the issue if I link and embed and sign on the main app, but validating the binary with xcrun altool --validate-app succeeded with nested xcframework. I verified that the succeeded binary does not have the Frameworks folder within the frameworks folder that was embedded, so maybe XCFrameworks doesn't create a nested Frameworks folder anymore.
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’22
Framework Not Found XCode 14- build error with frameworks integraded Cocoapods
Hello, I am having trouble using the latest cocoapods version 1.12.1 compiled with XCode to create a workspace. i am on macOS 13.2.1 (22D68) with an Apple M2 chip. After creating my Podfile and entering 'pod install' into my terminal to create my workspace, the creation is successful but when I exit out of my .xcodeproj file and switch to the newly created .xcworkspace file, the items under the 'Products' folder on the left hand side is red, my project Product is also missing, along with the pods_ProductName framework. When i attempt to run the project either on the canvas or in the simulator, there are many build and linker errors. I have compiled a list or everything I have tried to fix this issue. I checked the Framework and Library Downloads: I confirmed that all the required frameworks and their content have been successfully downloaded. I verified Target Memberships: I ensured that the target memberships for the frameworks are correctly set to my pro
1
0
2.3k
May ’23
Xcode 7 link app to framework
I know how to setup a workspace with a framework project that is used by an app project for Objective-C but, for Swift, I'm coming unstuck.I want, I think, to create a dynamic Swift framework as a separate project, that can beused by an iOS app and an OS X app.As a first stage, all I want to do is to be able to build the framework so that a Swift iOS app can find it when I build it.Can anyone tell me how to configure the build folders for the framework and then the search paths for the app?For Objective-C, using the @import keyword, I no longer have to add the framework to the app's list of libraries - should the same apply for Swift libraries?
0
0
395
Aug ’15
Reply to Playground can't find symbols in swift private frameworks
I had something similar going on and the solution made me feel pretty dumb: I hadn't built the framework that I was using in the playground. Now I thought I did, or that the other targets I built would implicitly build the framework for use in the playground, but that wasn't the case. When I explicitly selected the framework target and built it, my problems went away. Hopefully this helps you.
Sep ’15
Reply to Fat Framework Script for Xcode 10?
Just incase if people wants to use an all in one a build script that will create simulator and device frameworks based on the selected schema.Here it is:# This is a modified script and it will ask the target to build separate libraries for simulator and device etc # On project folder it will be found under Generated-Frameworks folder # As per the documentations for XCode 10 Apple does not allow building FAT librares # Go ahead and check https://forums.developer.apple.com/thread/66978 and https://forums.developer.apple.com/thread/109583 # Enjoy NicoX :) set -e # If we're already inside this script then die if [ -n $MULTIPLATFORM_BUILD_IN_PROGRESS ]; then exit 0 fi export MULTIPLATFORM_BUILD_IN_PROGRESS=1 ############################################ # Options ############################################ REVEAL_ARCHIVE_IN_FINDER=true OUTPUT_DIR_NAME=Generated-Frameworks FRAMEWORK_NAME=${PROJECT_NAME} OUTPUT_DIR=${PROJECT_DIR}/${OUTPUT_DIR_NA
Dec ’18
my framework is not building
Hi!I am creating an audio engine as a framework in Xcode 8 for iOS, but it does not build. It keeps giving me this error:Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1Could someone please help? I am not able to find the problem at allThanks
0
0
221
Dec ’16
Reply to iTunes Store Operation Failed ERROR ITMS-90087: "Unsupported Architectures. The executable for AdobeCreativeSDKCore.framework contains unsupported architectures '[x86_64, i386]'.
I’m presuming you’re trying to upload an iOS app here. If that’s correct then the immediate cause of this problem is that the frameworks you’ve included are built for the simulator, not for the device (note that the architectures in the error, x86_64 and i386, are all Intel architectures). Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Dec ’17
xcode 12 error when building for simulator
When I try to launch a simulator of the app I'm testing on Xcode 12, it always get the following error message: error: accessing build database /Users/MyUser/Library/Developer/Xcode/DerivedData/Project-/Build/Intermediates.noindex/XCBuildData/build.db: no more rows available I've looked around to search, however, I've not not found anything related to this exact same error message, so can you help me figure out what it is and how to fix it?
1
0
7.3k
Oct ’21
Reply to Xcode 7.1: Archive Only Error - All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build
When building with bitcode on, all your frameworks/libraries must also contain bitcode. Bitcode is generated by performing an Archive or install build while the ENABLE_BITCODE build setting is set to YES. If you are getting pre-built 3rd party frameworks through Carthage, it sounds like those frameworks were not built with the Archive action, and/or with ENABLE_BITCODE on, and don't contain bitcode. Rebuilding them yourself, as you've done, is probably the easiest way to resolve this issue.
Oct ’15
xcode 11.4 beta no longer allow non-universal frameworks
error: Building for iOS, but the linked framework 'xxxxx.framework' was built for tvOS + tvOS Simulator. (in target 'xyz' from project 'abc')error: Building for iOS, but the linked framework 'yyyyy.framework' was built for tvOS + tvOS Simulator. (in target 'xyz' from project 'abc')error: Building for iOS, but the embedded framework 'www_sim.framework' was built for iOS Simulator. (in target 'uvw' from project 'abc')Any idea what to do here? turning the framework to optional doesn't work either.We have frameworks that are built and use for simulator only, or tvOS only, or iOS only, is this no longer allowed in Xcode 11.4 going forward?If so what is the workaround?
3
0
5.6k
Feb ’20
Unable to load libcrypto.dylib in iOS Simulator
I've created an Xcode app for iOS simulator, which is basically the template code, save for this: - (void)viewDidLoad { [super viewDidLoad]; void *handle = dlopen(/usr/lib/libcrypto.0.9.8.dylib, 1); if (!handle) { printf([%s] Unable to load dylib: %sn, __FILE__, dlerror()); }} Which results in a message that contains:Unable to load dylib: dlopen(/usr/lib/libcrypto.0.9.8.dylib, 1): no suitable image found. Did find: /usr/lib/libcrypto.0.9.8.dylib: mach-o, but not built for iOS simulatorUsing the file command reports that the file supports i386 and x86_64 architectures.Is iOS simulator just blocking the loading of this file, or is it genuinely not built for simulator? If the latter, how does one tell the difference?
10
0
4.0k
Feb ’16
xcodebuild for generic/platform=iOS Simulator is failing on my MacBook
I am having a framework that I am building using a buildscript using xcodebuild. The framework archives for all architectures required so that it can be used in another Xcode project. However, since I have installed Xcode 14, the build script gives an error when I am building for iOS Simulator. I do need to build the framework for iOS simulator as well so that developers can test their app that use the framwework on an iOS simulator. The command line to archive the framework for iOS Simulator is: xcodebuild archive -scheme -destination 'generic/platform=iOS Simulator' -archivePath SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES The error I am getting is: xcodebuild: error: Unable to find a destination matching the provided destination specifier: { generic:1, platform:iOS Simulator } This works well for all other destinations I am building
4
0
5.9k
Oct ’22
iOS Simulators vanished
I was running my app in the simulator yesterday, and today they are gone. I can see several simulators under Platforms in Settings, But under Devices and Simulators there's nothing. So I have the GET button at the top to download yet another 7.5 GB worth of simulator, and it results in the little window in the lower left - but nothing is appearing in my simulator list or as a scheme option. I would love to have a long rant about the richest company unable to build a stable IDE but I know this isn't the place. Instead, is there a way to fix this? If I try to click the + in the simulators window and choose any of the iPhone 15 devices (which come with the iOS 17 simulator), there are no runtimes, so I am unable to add one. Just yesterday I had a long list. Not sure how to fix this.
1
0
705
Feb ’24