Troubleshooting iPhone Simulator Build Problems
by CharlesL · 01/09/2012 (11:39 am) · 0 comments
When you are building to the iPhone Simulator, sometimes things go haywire. Do you get 2000 errors? Are not able to build because "Base SDK is missing"? I got those problems too. In the following troubleshooting guide I will help you fix these problems.
"Base SDK is missing"
This is a common problem, but its easy to fix. The reason that this is happening is because XCode can't find the right file (the SDK) to build on. How to fix it:
Now you should be able to select a Simulator from the build target menu. If you have a bunch of errors go on to the next section.
2000+ Build Errors
Oh no! Do I have to go in and manually fix everything? Thankfully the answer is no (probably). If you click on the errors to see the problems you will see one of the following (somewhere in the bunch)
Note: if the liberary CoreMotion is missing, the liberary is not supported in the SDK version you are using. You will have to change the Base SDK to 4.0 and above
If you are getting the second error mentioned above, you are not using a supportable iOS Deployment Target, you will have to change that.Look on the Torque website to see the supportable version.
If you have any questions feel free to comment below.
"Base SDK is missing"
This is a common problem, but its easy to fix. The reason that this is happening is because XCode can't find the right file (the SDK) to build on. How to fix it:
- Go to Project > Edit Project Settings.
- Click the General Tab(if you are not already in it)
- Change the Base SDK for All Configuration to iOS 4.3 (This is the latest SDK at the time of writing. You have to use the latest SDK that iTorque supports)
- Close that window
- Now open Project > Edit Active Target "iTorque2DGame_device"(Note: the name in the quotes is what I have. Yours may be different.)
- Click the Build Tab
- Change Base SDK to the SDK you chose above
- Scroll down to iOS Deployment Target and change it two one version behind the current version.
- Close the window.
- Click Build and Go!
Now you should be able to select a Simulator from the build target menu. If you have a bunch of errors go on to the next section.
2000+ Build Errors
Oh no! Do I have to go in and manually fix everything? Thankfully the answer is no (probably). If you click on the errors to see the problems you will see one of the following (somewhere in the bunch)
- Missing file/liberary (file/liberary name)
- Operator '<' has now left operand.
Note: if the liberary CoreMotion is missing, the liberary is not supported in the SDK version you are using. You will have to change the Base SDK to 4.0 and above
If you are getting the second error mentioned above, you are not using a supportable iOS Deployment Target, you will have to change that.Look on the Torque website to see the supportable version.
If you have any questions feel free to comment below.
