Running a script in Xcode while compiling is a great way to have multiple targets with different resource and alike. After adding your script you might run into a permission denied error. You need to add permission to the file. Open up a terminal and navigate to the location of the .sh file. Now use
Tag: xcode
Xcode Couldn’t Register with the bootstrap server
After trying Xcode Error Provisioning Profile Cannot Be Found After Deleting Expired Profile you might run into yet another problem with Mac where you are not able to install you app. It runs without any problems in simulator but crashs on the iPhone. It compiles without errors but crash and end in a pthread_kill error. Couldn’t register com.company.app
Xcode Create Launcher Image
iPhone app got a launcher image to fool the users to think the app starts very quickly. To create this launch image can be create from the Organizer from Xcode. Open Xcode and go to menu Window -> Organizer or the Organizer icon in the topright corner of Xcode. Remember to connect your iPhone to
Xcode Can’t Remove SplashScreen
In Xcode after doing a ScreenShot in Organizer and pressing “Save as Launch Image” the image does not appear in the Groups and Files / project files. The file do however exist in the project folder if you navigate to it in Finder. To remove it go to your specific Target and select “Build Phases”
Xcode Autoformat Code
There is no autoformat i Xcode like the one you’ll find i Eclipse. However you can re-indent the code which will realign your code accordingly to the preferences. Editor -> Structure -> Re-Indent or use the shortcut Ctrl + i
Xcode Error Provisioning Profile Cannot Be Found After Deleting Expired Profile
Tried to rebuilding an app from the day or older you might run into this error. Code Sign Error: Provisioning Profile (long string) can’t be found. This error is causes due to the xcode project file is messed up, mostly when you have an old project and created that with an older version of sdk
Xcode Not Updating When Changing Image
When developing in iPhone in Xcode and you change an image it might not be updated when you run it on your device or simulator as it’s still use the old image. The error can be caused by different factor but can be solved by doing some or all of these steps. Uninstall the app