Following this tutorial, http://codewithchris.com/deploy-your-app-on-an-iphone/ Xcode crashes when I run the app on my phone. On the simulator it is working. There's no warning before the crash. I tried running a completely empty app, but no luck.
I'm using Xcode 6 and an iPhone 4s with iOS 8.1.3.
The log from the Xcode crash report says this:
Application Specific Information:
ProductBuildVersion: 6C121
ASSERTION FAILURE in /SourceCache/DVTFrameworks/DVTFrameworks-6760/DVTFoundation/FilePaths/DVTFilePath.m:802
Details: fsrep is relative ('גÄ-/גÄ,var/folders/6g/y36l5n813bd3kch53qp4w60h0000gn/CגÄ-/גÄ,/com.apple.DeveloperTools/6.2/Xcode') parentPath must not be nil but it is.
but I don't understand it; does anyone know what this means?
Related
So I upgraded to Xcode 7.3.1 and now my Xcode will build, and deploy my apps (yes every app, even a brand new blank one) to the simulator but the app never launches on the simulator and the debugger never attaches, Xcode just hangs and has to be force quit. I've completely wiped out Xcode and all simulators and re-installed to no avail. I've scoured Stack Overflow and Google trying every piece of advice and still no luck. Anyone anywhere have any idea how to solve this issue? If I downgrade to 7.2.1 I'm able to debug in the simulator just fine.
Let me know if you need more information.
My Apps run just fine on the simulator, and if I try to attach the debugger to a running app it wont and Xcode hangs in the attempt, when attempting to attach this way at least Xcode doesn't have to be force quit.
FYI, I can debug on a device this is only a simulator issue.
I had this same issue, and tried fixing my projects and reinstalled Xcode twice before I was able to get Simulator to crash and give me an error report that called out Cylance. Luckily I have access to administer our Cylance portal, so I was able to work through the issue to narrow down the problem.
Symptoms:
When running an app from Xcode, the Simulator launches but the application does not launch within the Simulator
Trying to stop the application from within Xcode does not work, and generates no messages
Trying to re-run the application from within Xcode generates the following message: ‘An instance of “APPLICATION NAME” is already running. Choose “Stop” to terminate and launch a new instance.’ But pressing Stop does nothing.
Xcode will not quit, and eventually the user must Force Quit to exit Xcode
Within the OS X console, the following messages are displayed:
6/3/16 7:35:38.000 PM kernel[0]: AMFI: com.apple.dt.ins(pid 2239) - [deny-mmap] main process is a platform binary, but mapped executable file is not: /Library/Application Support/Cylance/Desktop/CyMemDef.dylib
6/3/16 7:35:38.000 PM kernel[0]: AMFI: com.apple.dt.ins(pid 2239) - [deny-mmap] mapped file has team identifier XXXX: /Library/Application Support/Cylance/Desktop/CyMemDef.dylib
Resolution:
The problem is caused by Memory Protection being turned on within the policy assigned to the Mac within the Cylance portal.
To resolve the issue, place the Mac into a zone/policy that does not have Memory Protection turned on. Auto Quarantine and Protection Settings can be left on.
During my testing, I was not able to come up with a list of exclusions that allowed me to leave Memory Protection on, so I ended up disabling it completely.
I'm using Xcode 6 GM Seed (build 6A313) with iPhone 5s (Model A1530, iOS 8 build 12A365). I connect the iPhone via USB lightning cable. But in Xcode, it shows as: "iPhone 5s (unavailable)".
Further investigation: I open Xcode menu > Window > Devices, it shows the following error:
An error was encountered while enabling development on this device.
Please try rebooting and reconnecting the device. (0xE8000070)
I reboot and reconnect my iPhone 5s, the same error is shown. This device was used for development in previous Xcode 5, and shows no problem at all.
What should I do? I want to try my apps in iOS 8 device.
If you are using Xcode-beta 7.1 and want to run app on iOS 9.0 like me you will also get the same error. The solution is:
Use corresponding iOS 9.1-beta.
Use Xcode 7.0
Run on simulator.
The problem is resolved after I updated iTunes to version 11.4 via Software Updates.
The Xcode error message is misleading.
In my case, during 2 years developing, my phone has several test app with name (null). you can only see a default Xcode app icon in app list in Setting. I had tried updating Xcode, but not work. finally I delete these null name apps, then Xcode - device can connect it without warning sign. Run test app won't get the error in question. only my case. share it in case you encounter in future.
I'm new to Xcode. Recently has just downloaded the Xcode6-beta2 to learn swift and followed tutorial online to setup app to run on real device.
My simulator on Xcode6-beta2 was working before but it's not longer working after the setup to run app on real device.
There is no problem when run my app on real device but when i try with simulator(iphone5s). The simulator never open & on finishing running app on simulator it trigger me with an "null" alert.
I didn't notice any other error on console except the alert(null).
Please advice. Thanks in advance.
Below link for screenshot of the null alert error:
http://i61.tinypic.com/2a976zl.jpg
As in the comments:
Your simulator process is probably still around as a zombie process. You can check with
ps -el | grep 'Z'
If that's the case a restart of your mac should help.
More information in this question: iPhone - strange error when testing on simulator
I can't debug any application on my iPhone. XCode compiles the application, deploys it to iPhone, says it is running the app, and immediately I see the message "Finished running x.app on iDevice". Although the app crashes, it is copied to the phone. After this crash I can start the application on the phone without problems but can't seem to debug any project on the phone. No old projects, no new projects, everything seems to be broken.
There are lots of advices to solve this problem on SO but none of them helped me a bit.
I use XCode 4.6 on Mac OSX 10.8.2.
had the same problem when i changed the project name and the app name.
i've done several times reset to the simulator 'ios simulator' --> 'reset....'.
try it, also try to delete old app in device and simulator, do 'product' --> 'clean', and then try again.
it sounds silly but its working for me when i has the same issue.
Try changing the Version number in 'deployment target' in your App's target in XCode to something else.
Does it run in your Simulator?
Try running in some other device (some other device version,like 4S or 4)
Is the issue with iPad or iPhone or both?
I have an Xcode 4.2 project with ios5 targeting 4.3 and am now suddenly getting "wait_fences: failed to receive reply: 10004003" error.
It occurs on the 4.3 Simulator (don't have a 4.3 device). It does NOT occur on 5.0 simulator or device.
App runs as before and when the keyboard appears, all is good. When I tap the keyboard. I get the error. Description is displayed once in the console. Subsequent runs still crash app but error is not written to console! (So I'm assuming subsequent crashes are the same) It's suddenly started occurring and I can't see anywhere the in the code, changes could affect it.
Has anyone else experienced this same issue and or managed to resolve it?
NB: I have already read the other posts regarding this error.
Have now confirmed that it is not the code so my iOS Simulator must have been corrupted some how.