IOS target generating errors.

Monkey Targets Forums/iOS/IOS target generating errors.

jwl(Posted 2012) [#1]
Hi All,

I tried building some code across the different platforms as a test. HTML, GLWF, and STDCPP worked. IOS failed consistently. I tried uninstalling/reinstalling XCODE 4.5 with the same outcome. I'm using the latest Monkey install.

This is what I'm getting. Any ideas?


"/Applications/-Monkey_Pro_65/bin/trans_macos" -target=ios -config=Debug "/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.MONKEY"
TRANS monkey compiler V1.41
Parsing...
Semanting...
Translating...
Building...
Build settings from command line:
SDKROOT = iphonesimulator6.0

=== BUILD NATIVE TARGET MonkeyGame OF PROJECT MonkeyGame WITH CONFIGURATION Debug ===
Check dependencies

CpResource data build/Debug-iphonesimulator/MonkeyGame.app/data
cd "/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios"
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks "/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/data" "/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/build/Debug-iphonesimulator/MonkeyGame.app"

CompileC build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/Objects-normal/i386/main.o main.mm normal i386 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
cd "/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios"
setenv LANG en_US.US-ASCII
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -arch i386 -fmessage-length=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-arc-abi -Wno-c++11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -fexceptions -fasm-blocks -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -mios-simulator-version-min=3.0 -iquote "/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/MonkeyGame-generated-files.hmap" "-I/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/MonkeyGame-own-target-headers.hmap" "-I/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/MonkeyGame-all-target-headers.hmap" -iquote "/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/MonkeyGame-project-headers.hmap" "-I/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/build/Debug-iphonesimulator/include" -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include "-I/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/DerivedSources/i386" "-I/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/DerivedSources" "-F/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/build/Debug-iphonesimulator" -include /var/folders/62/ph2kljws7b7_67p4ynzrrjt80000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/MonkeyGame_Prefix-gxyhbhqozyavtwbmlvzdahpqikqo/MonkeyGame_Prefix.pch -MMD -MT dependencies -MF "/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/Objects-normal/i386/main.d" --serialize-diagnostics "/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/Objects-normal/i386/main.dia" -c "/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/main.mm" -o "/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/Objects-normal/i386/main.o"
/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/main.mm:30:7: error: use of undeclared identifier 'CFG_IOS_RETINA_ENABLED'
if( CFG_IOS_RETINA_ENABLED ){
^
** BUILD FAILED **
/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/main.mm:44:7: error: use of undeclared identifier 'CFG_OPENGL_GLES20_ENABLED'
if( CFG_OPENGL_GLES20_ENABLED ){
^
/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/main.mm:53:8: error: use of undeclared identifier 'CFG_OPENGL_DEPTH_BUFFER_ENABLED'
if( CFG_OPENGL_DEPTH_BUFFER_ENABLED ){
^
/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/main.mm:68:8: error: use of undeclared identifier 'CFG_OPENGL_DEPTH_BUFFER_ENABLED'
if( CFG_OPENGL_DEPTH_BUFFER_ENABLED ){
^
/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/main.mm:85:6: error: use of undeclared identifier 'CFG_OPENGL_GLES20_ENABLED'
if( CFG_OPENGL_GLES20_ENABLED ){
^
/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/main.mm:95:6: error: use of undeclared identifier 'CFG_OPENGL_GLES20_ENABLED'
if( CFG_OPENGL_GLES20_ENABLED ){
^
/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/main.mm:101:7: error: use of undeclared identifier 'CFG_OPENGL_DEPTH_BUFFER_ENABLED'
if( CFG_OPENGL_DEPTH_BUFFER_ENABLED ){
^
/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/main.mm:114:7: error: use of undeclared identifier 'CFG_OPENGL_DEPTH_BUFFER_ENABLED'
if( CFG_OPENGL_DEPTH_BUFFER_ENABLED ){
^
/shared/monkey programming/PROJECTS/FUNC SUM/_FUNCTSUM.build/ios/main.mm:133:6: error: use of undeclared identifier 'CFG_OPENGL_GLES20_ENABLED'
if( CFG_OPENGL_GLES20_ENABLED ){
^
9 errors generated.


TRANS FAILED: TRANS Failed to execute 'xcodebuild -configuration Debug -sdk iphonesimulator', return code=16640
Done.


jwl(Posted 2012) [#2]
I think I solved it! Looks like there was some weird permission access with the folder containing the projects! I renamed the old folder and created a new one. I re-saved the project from Monkey to that new folder. Now everything works!!!!!!!!!! Even the IPAD simulator pops up!!!!

You might want to keep this in mind if you are have compile issues.


Thanks.


Jenny