Xcode 4 project: utility to clean up pbxproj file?

后端 未结 6 887
-上瘾入骨i
-上瘾入骨i 2020-12-13 19:23

I have an Xcode 4 project with 2 targets, one for iPhone and one for iPad. If I click on the iPad target and try to go to Build Settings Xcode 4 crashes:

6条回答
  •  醉酒成梦
    2020-12-13 20:08

    Ran into the same issue this morning after pulling a colleague's merge.

    I was able to fix this with the following:

    1. Close Xcode
    2. Open the .xcodeproj package in Finder
    3. Delete the project.xcworkspace file/package
    4. Open the xcuserdata folder and delete your user-specific .xcuserdatad folder.
    5. Re-Open Xcode and project

    I lost some minor user preferences (file and tab history, etc), but can now click all (9) of my targets without issue. Turns out my colleague was on an earlier version of Xcode, but I'm not sure if this contributed to the IDE crashing.

提交回复
热议问题