I am trying to implement a specific pre-compilation effect on objective-C code ( here) . I managed to get my own compiler in Xcode 5 after these useful instructions . However, my attempt to passthru clang results in an error:
My custom compiler executable:
#!/bin/bash
clang "$@"
Error message:
While building module 'UIKit' imported from /Users/Club15CC/Google Drive/Code/Frogger/Frogger/Frogger-Prefix.pch:14:
...
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:13:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:33:1:
error: use of empty enum
};
^
/Users/Club15CC/Google Drive/Code/Frogger/Frogger/Frogger-Prefix.pch:14:13: fatal error: could not build module 'UIKit'
~~~~~~~^
2 errors generated.
Command /usr/bin/frogger failed with exit code 1
Note that the executable is froggeralso called the test Xcode project frogger.
It works fine with the default compiler. Does it have an enumeration error that some flag does not pass? Does bash have a size limit $@? Is the line calling the compiler quite long and possibly truncated?
Thanks for any help ...
---- UPDATE ----
, " " : LLVM : -mios-simulator-version-min=7.0, : -mmacosx-version-min=10.6 - UIDevice. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Specifications/Native Build System.xcspec iOS . , . !