可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
I have an Xcode project which was downloaded from the internet so I don't know which Xcode version was used to write it but the language is Swift 2. I opened it in Xcode 7.1 beta 1 and I get the following compile time error.
Failed to launch IBCocoaTouchImageCatalogTool via CoreSimulator spawn
I deleted the DerviedData foler, cleaned and build the project several times. Tried converting the project to latest Swift syntax but it says there's nothing to convert.
I'm all outta ideas. Suggestions?
回答1:
The same happened to me and it was solved by cleaning the project. However, if you cleaned it —as you say you did—, I would try closing and reopening Xcode. Even though it seems stupid, it works more often than not.
回答2:
So After Trying a bit i removed the XCassets file form the Copy Bundle Resources, build once without it and then added it again. Solved it for me.
回答3:
I had the same issue. My solution was to do the following
- Clean the Project
- Quit Xcode
- Reopen Xcode
- Build
That got it working for some reason...
回答4:
The above answers are correct.
I have a bit similar approach.
After, I use these steps:
Clean the project.
Remove your Assets from your project(Remove References). Run the project without assets. Now the project will show some compile errors, these are not very tricky.
Run the project, this time project run without your assets and may be chances of crash. This ensures that project will run.
Now clean the project and add the assets, now run the project. The project runs successfully.
For me it works. I hope it will be helpful to you.
回答5:
I was also facing the same issue tried cleaning and restarting XCODE didn't worked for me,
so I removed xcassets and added the image sets again one by one, and that worked for me.
回答6:
Had to add a step Airman00's answer.
- List item
- Clean the Project
- Quit Xcode
- Delete derived data
- Reopen Xcode Build
That got it working for some reason...
回答7:
Update to XCode 7.1.1 from 7.1 solved my problem.
With XCode 7.1 I used Airman00's solution but suddenly it stop working.
Hope it helps!
回答8:
If you have this type of error in your project then follow these steps:
- Clean the project
- And go to storyboard and select any viewController
- And Run the project again
This will successfully resolve the error.
回答9:
I had to restart my machine to get this to work. Just in case, here are the exact steps I did:
- Clean project
- Quick Xcode
- Delete Derived Data
- Restart machine
- Reopen
回答10:
Maybe you have just cleaned Logs
directory...Then you can try this:
sudo chmod 777 /Users/[YourUserName]/Library/Logs
回答11:
Possible solution for those struggling with the above answers.
If you've just restored your machine from a time machine backup (migrating from old to new machine), you may want to re-install Xcode.
It doesn't appear to bring the caches or other important settings across properly from the time machine restore.
I've just taken that; what appears to be a drastic step, but it's worked!
Instructions on how to do so: Completely reinstall Xcode 9
-W