I updated my Xcode from 6.2 to 6.3 and now instruments is not working anymore, it is requesting a template and it doesn't matter which one is chosen, it is not able to open it.
It is happening with iOS 8.2 on an iPhone 6+, and with the simulator (ios 8.2 and 8.3).
UPDATE I also updated my phone to iOS 8.3 and tried with Xcode 6.4Beta and I still have the same problem.
Try to run this from a terminal:
sudo chmod a+rwxt /Library/Caches/com.apple.dt.instruments
to fixup permissions on that directory.
Source : https://forums.developer.apple.com/thread/6441
I actually got the same problem with Xcode 7 and solved it by deleting instrument's default base temp directory, and I guess it was in this folder (/Library/Caches/com.apple.dt.instruments)
Related
Delphi 10.2.3 MacOS Mojave (which I'm regretting)
I had Xcode 10 and it didn't work with Delphi. I removed Xcode 10 and I installed Xcode 9.4.1 and its command tools.
The PAServer continues to give this message on startup:
Acquiring permission to support debugging...failed
Delphi hangs during the "Launching:" phase of deploying an iOS app.
Everything worked fine before I upgraded to Mohave and tried Xcode 10.
What's a guy got to do to get Delphi 10.2.3 to debug iOS apps with Xcode 9 on Mojave?
The following seems to work:
Start the PAServer in Terminal under root:
sudo ./paserver
or set permissions for dbkosx as follows:
sudo chown root dbkosx_25_0
sudo chmod u+s,g+x dbkosx_25_0
Assuming you are in the PAServer-19.0.app/Contents/MacOS/ folder. If not, then execute this first:
cd /Applications/PAServer-19.0.app/Contents/MacOS/
Here's what fixed it. I deployed a blank iOS app from Xcode. Then Delphi started deploying normally again, including stepping into the debugger.
I have no idea what magic Xcode did to clear the logjam.
I'm using Xcode 8 and cannot run a playground. As soon as the playground opens and starts to build the file I get this error:
Under Preferences -> Components in Xcode I do not see any iOS 10 Simulators available for install:
I have Xcode 6.4, 7.3, and 8.0 installed but my command line tools are pointing to Xcode 8. How can I fix this issue?
Restarting my computer and opening Xcode 8 before 7 or 6 fixed this error and made Xcode 8 playgrounds start working again.
Quit all Xcode versions you have running. Quit the simulators as well.
Then open the desired Xcode version.
Go to Xcode >> Preferences >> Locations >> Command Line Tools >> and change it to match the Xcode version you've just selected. You have to do this manually each time you switch between different Xcode versions! To be on the safe side just delete the derived data as well. But I'm usually able to get it to work without that.
If that didn't work then also restart your mac.
I finally upgraded to Yosemite but also had this issue on Mavericks.
I downloaded xCode5.1.1 and installed moving to Applications folder and selecting "Keep both", so it renamed the Xcode.app folder to Xcode 2.app. I renamed it to Xcode5.app then.
Now starting the xCode5 and installing all the 6.x SDKs iam unable to start the simulator. It stays black screen.
When i run the iPhone Simulaotr manually from console i get lots of "Service cannot load in requested session" messages.
It tried to load *.plist files from within the /Application Support/iPhone Simulator/6.1/tmp/LaunchDeamons/com.apple.....plist, but that tmp folder is empty.
In xCode5.1.1 on preferences -> Locations i set the command line tools to xCode5.1.1.
But still i cannot load the ios6.x simulator, it works for 7+, but 6 does not load at all. Its just a black screen.
Simulators older than 7.1 will not run correctly on OS X Yosemite. If you need iOS 6.1 and 7.0 simulators, you need to install Mavericks.
Similarly, if you need the iOS 5.1 and 6.0 simulators, you need Mountain Lion.
I upgraded Xcode to 4.5.2 from 4.3.2 and install Simulator 5.0 or 5.1 but it tips
"Failed to mount file://localhost/Users/admin/Library/Caches/com.apple.dt.Xcode/Downloads/Xcode.SDK.iPhoneSimulator.5.1-5.1.dmg at file://localhost/var/folders/sw/qht9m6ln7353v5mbfyvhtmf00000gn/T/attached-image-6fdc393a2528f4e65d994f841bfb0d76b998b7e3/: not recognized", how can I do,thanks.
I found a work around for this. I am currently using Xcode 4.5 so I am sure it works for 4.5.2 as well.
I found the URL's for downloads in the .dvtdownloadabelindex file located in
Users/<user>/Library/Caches/com.apple.dt.Xcode/Downloads/
I copied the file to my Desktop and renamed it to .plist. Looking through some of the I found two URLs to download the simulators (Root/downloadables/Item 9/ for iPhoneSimulator 5.0 and Root/downloadables/Item 17/ for iPhoneSimulator 5.1). Not sure if I am allowed to post the direct URLs due to Apple TOS and whatnot.
I downloaded the two simulators, installed what was in the .dmg. It made a folder in the root of my drive called Platforms. I then copied
/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk
to
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk
Restart Xcode (or in my case, MonoTouch), go into Xcode preferences and to the tab you would normally download them from, click install and this will get rid of the "iOS Simulator could not find the SDK. The SDK may need to be reinstalled." error that you would normally get.
You now have access to the iPhone/iPad iOS 5.0 Simulators. I have only done this for the 5.0 simulator not 5.1, but I am sure it will work the same.
This works for me:
Delete *.dvtdownloadableindex file
Restart Xcode
Install simulators
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to install Simulator SDK 4.3 to Xcode 4.4 on Mountain Lion
I just upgraded to OSX 10.8 and Xcode 4.4, then I found 4.3 simulator was gone away and likely Apple didn't offer link to install it. Is there any hack to get 4.3 simulator back? Thanks.
Update: This solution doesn't work anymore on Mountain Lion. If you have to support 4.x I suggest you don't upgrade to ML and stick to Lion and Xcode 4.3.3. But, I'm guessing it's too late now since you're already here and reading this.
Xcode 4.3.3 doesn't work in Mountain Lion.
If you want the 4.x simulator back into Xcode 4.4 here's what you have to do:
Download Xcode 3.2.6 and iOS SDK 4.3 from https://developer.apple.com/downloads/ (you must be an Apple Developer to have access to that area)
Mount the .dmg file
Inside the disk there should be an invisible "Packages" folder. To open it use shift + cmd + G (Go To Folder) and type "/Volumes/Xcode and iOS SDK/Packages/"
Install iPhoneSimulatorSDK4_x.pkg in a temporary folder
Once installed go to your temp folder and you'll find a iPhoneSimulator4.x.sdk file
Open a new Finder window and navigate to "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform" (you can do this with the same command as above, shift + cmd + G)
Drag the iPhoneSimulator4.x.sdk from your temp folder to the SDKs folder of the Xcode package.
Restart Xcode and delete your temp folder
Xcode 4.4 drops simulator 4.3 by policy. It is no longer in downloads. It DOES offer debug of iOS 3.0-3.2.2 and iOS 4.0-4.1