My app is written in swift, and it works pretty well in the simulator. However, when I try to build it for my iPad, it says
"Cannot load underlying module for 'Foundation"
"Cannot load underlying module for 'Foundation"
"Cannot load underlying module for 'Foundation"
"Cannot load underlying module for 'Foundation"
The iPad is in iOS 8, and the project is targeted for iOS 8
Try to check Foundation.framework in your SDK for device targets:
ls /Applications/Xcode6-Beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/System/Library/Frameworks | grep ^Foundation.
It must exists, if not, reinstallation of Xcode will fix this problem.
(Note: SDK frameworks for device and simulator are located in other folders)
If Xcode 6.1 starts messing around like that, easy fix is to delete user settings by removing Xcode folder: ~/Library/Developer/Xcode.
Backup your keybindings and themes first from ~/Library/Developer/Xcode/UserData
If you look in the issue navigator, XCode will let you know the path it looked for Foundation in. Part of the path will include what Platform it's looking for.
In my case, I updated to XCode 6 Beta 3 and had this error caused by the deployment target defaulting to OSX 10.10 which I don't have installed.
You can click your project name to change your deployment target.
In my case, changing the deployment target back to 10.9 fixed this.
Related
I run or build an app successfully but when I archive an app, I have an error "No such module 'Kingfisher'" after I archived in Xcode 12.1.
[1]: https://i.stack.imgur.com/M9kQM.png
I made an app with min iOS 9.0.
I've tried the solution from the link "No such module" error when archiving but it didn't work. The error is just the same.
But, the answers on the link are mostly users build on iOS 10 or 11 and they said it worked.
I've tried reinstalling the pods, clearing derived data, but it doesn't work. In my Podfile uses iOS 9 like the image below.
[2]: https://i.stack.imgur.com/ujUSD.png
Should I upgrade the iOS version from iOS 9.0 to be higher?
Im not sure if it is 100% related. But it seems that Kingfisher is supporting minimum iOS version 10.
So for your question yes. I’d try to raise it.
Podspec - https://github.com/onevcat/Kingfisher/blob/master/Kingfisher.podspec
a) Go to Pods products group and select all pods framework
b) Open build settings and select Architecture section
c) Set 'Standard Architectures (arm64, armv7) - $(ARCHS_STANDARD) for Debug and Release mode
I had this kind of issue. Fixed for me. Try this.
I am trying to run an application I am developing on an iPhone that runs iOS 10.2.1. I also tried to run it on a simulator that runs iOS 10.2. My Xcode version is 8.3.3. Even though I changed the deployment target to 8.0, I get the following error when I try to run it on a device under 10.3. Are there other things I should pay attention when changing the deployment target other than changing it from Info tab in Xcode? The error states the deployment target as 10.3 but it is not. How can I get around this issue?
"Run destination is not valid for running the scheme.."
My deployment target
Thank you,
I remember the same issue happening in my code.
In my case, I realized that I had not updated my Base SDK to the latest iOS version in the Build Settings
To do so, click on Project name -> Build Settings -> Base SDK
If Base SDK does not show, ensure that "All" is selected in the filter at the top of the page.
Also, sometimes the project has multiple targets and you might be setting the Base SDK on the wrong target.
You need to update your iphone to the newer version or downgrade your xcode version. Currently they are out of sync thus why you are seeing this error.
See here for compatibility:
https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Chapters/Introduction.html
I have searched Stack Overflow, Google and fellow peers for a current workaround in Xcode 6 for this error but have failed in doing so.
Note that this error occurs ONLY when attempting to run my app ON A DEVICE USING XCODE 6.
(This is not an issue when using the simulators, and I can build my app on a device using Xcode 5)
It seems to be a framework or library issue, but since it is able to work in almost every other possible way, I am not sure where the solution resides. I was using Xcode 6.0.
Here is the error:
I have checked my architecture settings, my frameworks and project files. Everything that needs to be included seems to be there.
This looks like it might be a silly error to do with Cocos2d and/or Xcode6. I have used SpriteBuilder to create the app. If you have a fix or have this error, any insight would be appreciated, thank you!
Found a fix. Downloaded the new Xcode6 version from the App Store. Xcode 6.0.1 (6A317) and it runs on all devices and simulators.
(There was no notification to update Xcode, you must search for it and download the new version)
basically it happens at the line like #import and every other ios header, like UIAccelerometer is unavailable and even UIView is unavailable, the compile stopped at the line #import. what could cause that?
I just had this issue trying to build for iOS 5.1 in XCode 4.5 after manually installing the iOS 5.1 SDK out of XCode 4.4.
After some initial frustration, this solved the issue:
Xcode 4.5 and iOS 4.2.1 incompatibility
Find your .xcodeproj, do "Show Package Contents" to expose your .pbproj and open it in a plaintext editor ( or Komodo Edit, maybe TextEdit if you have it setup to use plain text by default). Find every instance "IPHONEOS_DEPLOYMENT_TARGET" and make sure it says "IPHONEOS_DEPLOYMENT_TARGET = 4.0;"
Having the SDK 5.1 installed alone isn't enough, as I have discovered. Nor is changing the Deployment Target field under "Info". I had to manually edit the .pbxproj
Either you are building for MacOSX by accident, or you need to add the frameworks you are importing form iOS into your project.
faced similar compiling issues with xcode 5 using base sdk 6.3 - turned out to be several xib had a value of "opens in Default(5.0)". Setting the value to "opens in XCode 4.6" fixed it
As of today I can't compile my iOS Xcode project anymore. Immediately a message box pops up saying:
The run destination iPhone 4.3 Simulator is not valid for Running the scheme 'MyApp'.
The scheme 'MyApp' contains no buildables that can be built for the SDKs supported by the run destination iPhone 4.3 Simulator. Make sure your targets all specify SDKs that are supported by this version of Xcode.
I've already played around with various settings in Xcode but nothing helps.
Does anyone know how to solve this?
Thanks!
Just a wild guess, but did you have a look in your project settings under Base SDK? Does it say e.g. Latest iOS (iOS 4.3) ?