Hi,
I moved my project from my macbook to another OSX installation and the project is not on the same path as it used to be.
When I build it, I'm getting an error about a missing "Entitlements.plist" file. In the error message, the path to the Entitlements.plist is still the old path on the previous mac.
I search for all the files in the project which contains the "old" path and I see there is a lot of them ! When I was creating my project I was all the time selecting "copy files" when importing new files.
Here is the listing of the files
How can I get rid of those old references ? Did I do something wrong ? What is the correct way to move an xcode project to a new location ?
Aren't the files *.pbxuser, *.perspective *.perspectivev3 user data that I should be able to regenerate ?
thanks,
cheers,
Tex
I moved my project from my macbook to another OSX installation and the project is not on the same path as it used to be.
When I build it, I'm getting an error about a missing "Entitlements.plist" file. In the error message, the path to the Entitlements.plist is still the old path on the previous mac.
I search for all the files in the project which contains the "old" path and I see there is a lot of them ! When I was creating my project I was all the time selecting "copy files" when importing new files.
Here is the listing of the files
Code:
me@imac ~/xworkspace/mygame $ find . -exec grep -H "Data/Documents" {} \;
./mygame.xcodeproj/me.mode1v3: <string>/Users/me/Data/Documents/xworkspace/mygame/mygame.xcodeproj</string>
./mygame.xcodeproj/me.mode2v3: <string>/Users/me/Data/Documents/xworkspace/mygame/mygame.xcodeproj</string>
./mygame.xcodeproj/me.pbxuser: name = /Users/me/Data/Documents/xworkspace/mygame/Resources/Info.plist;
./mygame.xcodeproj/me.pbxuser: path = "/Users/me/Data/Documents/eBooks/Cocos2d-for-iPhone-099-Beginners-Guide/3166OS_Code/Chapter 5/Classes/SplashScene.m";
./mygame.xcodeproj/me.pbxuser: path = /Users/me/Data/Documents/xworkspace/mygame/Resources/Levels/level01.plist;
./mygame.xcodeproj/me.pbxuser: path = /Users/me/Data/Documents/xworkspace/mygame/Resources/Levels/level02.plist;
./mygame.xcodeproj/me.pbxuser: name = /Users/me/Data/Documents/xworkspace/mygame/Resources/expolsion.plist;
./mygame.xcodeproj/me.pbxuser: path = /Users/me/Data/Documents/xworkspace/mygame/Resources/Levels/level2/background2x.png;
./mygame.xcodeproj/me.perspectivev3: <string>/Users/me/Data/Documents/xworkspace/mygame/mygame.xcodeproj</string>
./mygame.xcodeproj/project.pbxproj: CODE_SIGN_ENTITLEMENTS = "~/Data/Documents/xworkspace/mygame/Entitlements.plist";
./mygame.xcodeproj/project.pbxproj: CODE_SIGN_ENTITLEMENTS = "~/Data/Documents/xworkspace/mygame/Entitlements.plist";
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/Classes/TWGameScene.m</string>
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/Classes/TWGameScene.m</string>
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/Classes/TWGameScene.h</string>
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/Classes/TWGameScene.h</string>
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/background@2x.png</string>
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/background@2x.png</string>
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/mygame.xcodeproj</string>
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/mygame.xcodeproj/</string>
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/Classes/TWParticleMeteor.m</string>
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/libs/cocos2d/Support/CCArray.m</string>
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/libs/cocos2d/Support/ccCArray.h</string>
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/TWStarManager.m</string>
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/Classes/TWGameScene.m</string>
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/Classes/GameConfig.h</string>
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/TWStarManager.m</string>
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/TWStarManager.m</string>
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/Classes/TWParticleMeteor.m</string>
./mygame.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate: <string>file://localhost/Users/me/Data/Documents/xworkspace/mygame/Classes/TWParticleMeteor.m</string>
How can I get rid of those old references ? Did I do something wrong ? What is the correct way to move an xcode project to a new location ?
Aren't the files *.pbxuser, *.perspective *.perspectivev3 user data that I should be able to regenerate ?
thanks,
cheers,
Tex
Last edited: