When I recently went to run the static analyzer on one of my projects using the recently released iOS 4.1 SDK, I got a series of the following types of errors:
Analyzer skipped this file due to parse errors '/var/folders/p9/p9X0YndXGHyxgsdRDDYre++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/PrecompiledHeaders-cbytywsinixhviaxvbooriusnxyo/PrecompiledHeaders.pch' file not foundI found the following workaround for the problem in the Apple developer forums (registration required).
On the Project menu, select Edit Active Target "MyProject" to bring up the Target Info dialog. Edit the Other C Flags setting and add
-D__IPHONE_OS_VERSION_MIN_REQUIRED=030000
, where 030000
corresponds to the iOS Deployment Target setting:- 3.0 -> 030000
- 3.1 -> 030100
- 3.2 -> 030200
- 4.0 -> 040000
- 4.1 -> 040100
2 comments:
Thanks, worked perfectly.
Cool, glad it helped!
Post a Comment