I am working on xCode 6.3.1, everything is working fine while debugging on device iPhone 5s iOS 8.3 but when I disconnect device and try to test application with simulator there are hundreds of errors about "Missing references" for many framworks (with any simulators iOS8+)
I tried to remove missing references and add again in "Build Phase" but no use.
Furthermore, I am having pods setup but missing references are from project of course. It was working fine before update to Xcode 6.3.1, here is one example error: Undefined symbols for architecture x86_64: "_ABAddressBookCopyArrayOfAllGroups". Addressbook is not some framwork which should only supported for device and not for simulator.
It is working fine with device, I uploaded Archive to app store, there was no issue either. Only with simulator.
I found solution, may be could help someone else, for me it was iPhone SDK location path as follows:
Build Settings>Framework search paths>iPhoneOS.platforms
I did not correct this path, I Just delete path and its working on simulator now.
Furthermore, Archive and debugging on device work perfect as well.
Related
I installed Xcode 9 and trying to run my app on ios simulator 11.0. As soon as it launches the app its crashing giving this error. What does this error mean? If my app is not compatible with ios11.0, how can I check for the compatibily?
EDIT - Uploaded my valid Architectures
You need to make these changes in build setting ... it works for me
I had the same problem and found out that the architectures and valid architectures settings for my targets (and pods) were set wrong. iOS 11 doesn't support 32bit applications anymore, so I guess that took part in my problem..,
I've deleted my architectures + valid architectures settings (made it default) and now it compiles and runs fine in both simulator and iOS 11 device. hope it helps u as well ;).
iOS simulator crash in iOS 8.2 and Xcode 6.2 with an error below
"Failed to lookup the process ID of xxx.xxx.xxx after successful launch. Perhaps it crashed after launch. No such process".
And I cannot try to simulate my app.
I uploaded the image of error.
http://imgur.com/2ayGys3
It works normally when i use iOS 8.1 as a simulator. Regardless of the types of devices and types of projects, it will crash in iOS 8.2 simulator.
The iOS simulator itself stands but has nothing on the screen.
A thing I care is that I changed my old macbook to new one and copy project files of Xcode from old to new.
Do you have any idea of this?..
I had the same problem and solved it by force quitting and restarting Xcode and iOS Simulator.
I had the same problem after I did a Mac update on xcode. I had the IOS simulator open during the install/update process. When I closed it, re-ran my compile, it re-opened the simulator and ran fine.
Simulator -> Reset Content and Settings did it for me.
In my case, all I needed to do was: Hardware -> Reboot on simulator.
I had the same problem, in my case the issue was :-
Have set "Build active architectures : NO". Just changed it to YES and it worked.
Even i had the same issue when i upgraded Xcode to 6.3.2. I just did re launch of Xcode and iPhone Simulator and worked for me.
I'm using xcode 7 beta 2 and am having the same problem.
My take is that this is a random error probably due to a race condition.
If I start xcode, then simply run my app over and over again, the error occurs randomly. Typically it will work 1 to 3 times in a row and then will fail 1 to 3 times in a row. The most consecutive failures I have seen so far is 3.
It might be the case that your app is not set up to build for the proper platform for simulator which are i.e. i386, x86_64.
It happened to me as I built for arm64 platform, and try to hook it up to simulator; built via xcodebuild command line. But I think you might want to try because basically Xcode use that tool to build things up for you.
So check the following in Build Setting of Xcode (along the line of text similar to this)
Only Build Active Arch => YES
Build architecture => i386 (or set to something else but not for mobile architecture)
I have xcode 4.5 with 6.1 sdk.
I updated my iphone to iOS 7.0.
opened my project on xcode selected my device and clicked run.
I got the following error:
dyld: could not load inserted library '/Developer/usr/lib/libXcodeDebuggerSupport.dylib' because image not found
image not found error is a new one didn't find anywhere on the internet. It's not the old libXcodeDebuggerSupport.dylib error people got when they updated their devices with earlier versions of Xcode.
I did link or/and copied developer folder from "5.1.1 (9B206)" to "7.0 (11A465)".
But still getting same error.
Does anyone managed to run on iOS 7 device from xCode 4.5? Thanks
I believe that to do device debugging on iPhone with iOS7 you will require to use XCode 5 with iOS7 toolchain. XCode 4.5 is older release and may not have the toolchain for latest iOS7.
For those who have not yet installed Xcode 4.5, the app can still be debugged by Attaching to Process. Try to debug directly from xcode first. By the time debug fails, the app will still have been installed on the device. Then run the app on the device, and Attach to Process from Xcode.
Since update to XCode 4.5 I am unable to open my apps in the simulator.
It says "Finished Running on iPhone 5.0 Simulator".
Sometimes, after retrying twice or thrice, the Simulator finally launches but the App never starts in it.
I am getting mad with this new version of XCode.
I have started a brand new project with a simple "Hello World" view. Even a clean brand new project cannot solve the problem.
Am I really missing something hidden in the config ?
Thanks
Lionel
Edit 9/21
When I try to run on my iPad 2 with iOS 5.1, I have the following error that may be linked to what I described above :
"Choose a destination with a supported architecture in order to run on this device."
My Project deployment target is 5.0
My Project build settings : Valid architectures = armv7 armv7s
My Target deployment target is 5.0
My Target base SDK is 6.0
My Target valid architectures are : armv7 armv7s
On my iPhone 4 updated to iOS 6 : same error.
Again, I started from scratch, deleting all information from the app and putting back each file carefully, and everything works seamlessly.
It's pretty unlikely it's any of your settings. Xcode just gets into a weird state like that sometimes. Usual fixes are force quit Xcode, force quit simulator, reboot.
XCode 4.2 Build 4D199 on Lion with iPhone 3G IOS 4.2.1
Project with Base SDK 5.0 and Target 4.2.
On this phone and on older iTouch the debugger never seems to startup. After pushing RUN the project compiles and then the Debug entry is in the Log Navigator with the Spinner Running. The spinner never stops and the app does not get loaded on the iPhone 3G.
Any clues on how to fix. This was working fine before the Lion Upgrade.
Need to test the older devices. Newer devices seem to work fine.
Device seems to be provisioned fine, etc.
Probably because armv6 is missing from the architectures for the Target.
Click on your Project in Xcode, then click on the Target. Double-click on 'Architectures', and delete what's current there - probably something like $(ARCHS_STANDARD_32_BIT) - using the '-' button. Next, click on the '+' button and add 'armv7', then add 'armv6'.
Hopefully, that should help.
I found when I would start a new project in xCode 4.2 (Build 4D199) it would not build to my iPod touch running 4.2.1. While I did have to set my architectures to include armv6, that alone did not do it.
In my project's Info.plist file xCode had set "Required device capabilities" to include 'armv7'. I removed that now everything is working fine.
I hope this helps someone else.