I'm getting the error "Could not allocate a resource" when I try to run on any of my devices. I've seen this as a possible fix:
sudo rm -rf /var/db/lockdown/
I've tried that and restarted my machine a handful of times, but no luck. I also tried changing USB ports. I've reinstalled Xcode as well after uninstalling with AppCleaner.
In addition to the error, whenever I connect a device it asks me "Trust This Computer?"
This is occurring on an iPhone 5 and iPhone 6+ with lightning, as well as an iPad 3 with the old style connector.
[Updates]
I've now also reinstalled iTunes to no effect.
Also reset PRAM and SMC.
After you delete that folder, you need to recreate again and make proper permissions, because iTunes need rw rights to that folder:
sudo mkdir /var/db/lockdown
sudo chmod go+w /var/db/lockdown
without having iTunes open. Then everything should be fine.
Also keep in mind the same operation may be required for /private/var/db/lockdown [a mirror]
If you moved and old Mac to a new one, make sure /var/db/lockdown/SystemConfiguration.plist contains your mac actual UUID . Generally it is not recommended to delete a system folder, anyway, without really knowing what you do. ;) Actually I replicated your problem moving /var/db/lockdown to another location, starting iTunes, getting error. Then recreate etc.
Related
I am getting the following error when I run ideviceinstaller/ideviceinfo commands:
No iOS device found, is it plugged in?
My iPhone is certainly plugged is and visible in lsusb.
Restart the usbmuxd service and your device will show up normally:
systemctl restart usbmuxd.service
Your iPhone will vibrate if it connected successfully.
there is a file 'lockdownd' and it might have 0700 permissions with the owner as root. You should try chmod 0705 lockdownd. restart was not necessary for me. You might also run ideviceinstaller/ideviceinfo as root or with sudo. You might not have a recent version or you might have multiple versions installed. There is an xcode version-ish and there is a brew.
UPDATE there are a lot of details missing here, however, I gt this error when I had installed libimodiledevices with brew and allowed or told brew to clean the other dynlinks. That disabled ideviceinfo etc because of a missing dynlib. For example flutter prepackages these tools and brew breaks it.
I've upgraded my Mac OS X to 10.11.1 El Capitan. When I try to run app on Xcode 7.1 I'm getting an pop message stating "Simulator" can't be opened because the identity of the developer cannot be confirmed. Refer screenshot.
Why this message? I'm not able to test any app on Xcode 7.1.
Gatekeeper requires that every application downloaded from the internet is verified. Since you downloaded "Simulator" with Safari it has to be checked and added to a list of accepted applications. Here is a quick way to do that:
Run Terminal.app
Enter the following command sudo xattr -d com.apple.quarantine /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
I found the answer here.
Apple believes is security that's the reason only apps which you have downloaded from App Store can be opened.
Well, to open any app which you have downloaded and install from anywhere you need to allow permission. To do so:
Open 'System Preferences'
Go to 'Security & Privacy' and tap on 'General' tab
Click on 'Lock' icon which you can find on bottom left screen and type your administrator password.
The last step is to choose 'Anywhere' under 'Allow apps downloaded from:' and then again click on 'Lock' icon.
That's it. Now you can run any apps.
Enjoy!
Simulator.app is distributed by Apple and should be codesigned appropriately.
The dialog you are seeing indicates that the version you have did not pass Gatekeeper's codesignature checks.
Possible causes:
You made local modifications to Xcode.app or Simulator.app to invalidate Apple's code signature.
Disk corruption or maybe an error in transport caused some resources in Simulator.app to not be valid such that the signature is no longer valid.
You downloaded an unofficial copy of Xcode.app (or just Simulator.app) which has been modified by a 3rd party. Google "XcodeGhost" for information on why that's a bad idea.
The Simulator.app you are trying to open is not actually Xcode's.
A bug in Gatekeeper or OS X might be triggering a false result.
Please also update your question with the output of the following steps (assuming you've setup xcode-select appropriately) for additional support:
codesign -vvv -d $(xcode-select -p)/Applications/Simulator.app
codesign -vvv $(xcode-select -p)/Applications/Simulator.app
This happened to me when I ran a build script that launched the simulator directly, before actually opening Xcode.
When you open Xcode for the first time it will go through a verification process that takes a long time. After that completes, the contents of the bundle will be verified as well and you can use the simulator without the warning.
If you still have the warning after verification your version of Xcode might be compromised.
It is possibly a bug that gatekeeper doesn't warn you that the parent bundle has not been verified.
In my case I had multiple instances of Simulator.app present (some downloaded directly from Apple's site, rather than installed from the store). When I issued open -b com.apple.iphonesimulator one of the downloaded simulators got opened, instead of the current one in /Applications/Xcode.app. I changed my command to open -a /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app and the issue is now resolved.
I am new to Xcode.
Recently Xcode on machine is broken.
I am getting error "Unable to boot up iOS simulator"
I tried lot of steps mentioned on stackoverflow and blogs but couldn't get it working.
I am hoping reseting Xcode will fix the problem. Even after uninstalling and reinstalling, Xcode is having previous state.
Is there any way to reset Xcode along with simulators ?
You will need to remove the Xcode.app data from ~/Library/Developer, which can be done from the command line (when Xcode is not running):
rm -rf ~/Library/Developer
You will then need to re-download the SDKs and Documentation from with Xcode. You might also want to check that the Command Line Tools are set-up from Preferences > Locations.
There is no need to reinstall Xcode.app, unless it's become corrupt, as nothing should ever write into the app bundle.
You might want to look at ~/Library/Application Support/Xcode as well, but on my system that folder is empty.
I try to develop app for iOs with MAC OS X Mavericks, but I haven't bought a mac, I virtualize it.
After download and install Xcode 6.1, I connect my iPad 2 on iOs 8.1 but, when my computer "copying symbol files" I've error after a long time.
The error is
Unable to copy symbols from this device This device has a version of iOs different from that of this installation of Xcode. In order to
copy the information needed to work with this device, Xcode must be
run by a user with read/write access to:
"/Users/Lortedo/Library/developer/Xcode/iOS DeviceSupport/8.1
(12B410)/Symbols/usr/lib/dyld"
I've been in the folder and I saw the folder dyld wasn't here. So I create it manually. Too I've give the chmod 777 for all the folder mentionned.
Thanks :)
Lortedo
Check also your harddisk. In my case, it was simply full. After deleting stuff and getting some free space, it worked fine for me.
I had to make some space on my physical harddisk, uninstall xCode, remove ~/Library/Developer/ folder, reboot my VM, empty Trash, reinstall xCode.
After updating to the latest version (6.1 b2) Xcode does not compile and run projects on the device anymore and shows "Copying symbol files" for hours. Any ideas or possible workarounds for this problems?
Try to use another cable or USB port - Other usb port fixed it for me and got the idea while finding this twitter post: [Tweet Gone]
Try this:
Clean Project
Option + Product -> Clean Build Folder
Remove this folder Library/Developer/Xcode/DerivedData/ModuleCache
Find your project folder in Library/Developer/Xcode/DerivedData/ and remove
Restart Xcode
I encountered the same problem.
"Rebooting my iPhone" worked for me.
I just spent the last several hours troubleshooting this issue on my device. I am running a virtual version of Mavericks on VBox. For me, the problem was resolved by installing Oracle VM Virtualbox Extension Pack. There was a problem with VBox fully recognizing the USB. It would recognize in iTunes, but not in XCode. This may be helpful for anyone running XCode on a virtual machine
Also you can try just to reboot your device - helps for me.
In my case, "Rebooting Xcode" & ensuring my iPhone was unlocked did the trick.
It appears that my Symbols file download began previously (as the Symbols directory for iOS 7.1.2 was in the expected location in ~/Library/Developer/Xcode/iOS DeviceSupport/), but did not complete, & thus sometimes was "sticking" and other times completing but showing my iPhone as unavailable.
When I restarted Xcode, I ensured that I already had the iPhone unlocked & then instead of just getting the "Copying symbol files" message, I also got a "Processing symbol files" message, after which my iPhone was available to run the app.
There are random solutions for this :
Please make sure that your device is unlocked when you run app.
Reboot your device.
Clean project using cmd+shift+k. You can also try Clean Build folder using alt+shift+cmd+k.
Delete the content of derived data and rebuild you app.
Quit Xcode and re-run your app.
Solution 1 and 2 worked in my case.
Delete the folder:
~/Library/Developer/Xcode/iOS DeviceSupport/<device's iOS version>
Then restart the device and restart xcode.
Apparently when the import symbol got stuck half way through it will never finish anymore, deleting the folder above should ensure the process restarts.
By restarting my iPad(iOS device) resolve the issue.
To cop with exc_bad_access error, I have enabled zombie objects in Xcode from menu -> product -> scheme -> edit scheme -> run -> diagnostics . And after that such issue started. I have disabled it and restart my iPad and eventually it will work.
I hope restarting iOS device will resolve your issue too.
This might happen also because of some usb hubs. Please try to connect your device without a usb hub.
reinstalling Xcode 7.2 seems to have helped
it has progressed past the "copying symbol files" and
showed a blue progress bar next to expanded "exporting symbol files"
(restarting Xcode and devices did not, replugging power to usb hub did not,
plugging to the mac directly bypassing usb hub did not : it was stuck for good
)