iOS Runtime Problems
Monkey Targets Forums/iOS/iOS Runtime Problems
| ||
I'm trying to track down a problem with my iOS builds. It seems that everything builds correctly, is installed onto the iOS simulator (iPhone and iPad), but everytime that I run the app it starts and immediately dies. I'm running Xcode version 3.2.6 (64bit) and things are not working for the diddy examples. I've included my log in case there is something useful there. The problem exists when I build and run from the generated Xcode project as well. I am new to iPhone development and am not even sure where the logs for the iOS simulator are. The logs look successful to me. Am I missing something? Translating testAnimation /Applications/MonkeyPro46/bin/trans_macos -target=ios -run /Users/kerrw/development/diddy/examples/Animation/testAnimation.monkey TRANS monkey compiler V1.21 Parsing... Semanting... Translating... Building... Build settings from command line: PLATFORM_NAME = iphonesimulator SDKROOT = /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk === BUILD NATIVE TARGET MonkeyGame OF PROJECT MonkeyGame WITH CONFIGURATION Debug === Check dependencies ProcessInfoPlistFile build/Debug-iphonesimulator/MonkeyGame.app/Info.plist MonkeyGame-Info.plist cd /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin" builtin-infoPlistUtility MonkeyGame-Info.plist -genpkginfo /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/Debug-iphonesimulator/MonkeyGame.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -o /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/Debug-iphonesimulator/MonkeyGame.app/Info.plist CompileXIB MainWindow.xib cd /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios setenv IBC_MINIMUM_COMPATIBILITY_VERSION 3.0 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin" /Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/Debug-iphonesimulator/MonkeyGame.app/MainWindow.nib /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/MainWindow.xib --sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk CpResource build/Debug-iphonesimulator/MonkeyGame.app/data data cd /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin" /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -resolve-src-symlinks /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/data /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/Debug-iphonesimulator/MonkeyGame.app ProcessPCH++ /var/folders/5p/5pHPx50nHSe7mK2xvY+RQk+++TM/-Caches-/com.apple.Xcode.502/SharedPrecompiledHeaders/MonkeyGame_Prefix-babetouycwrymffokpeyenrbcfmi/MonkeyGame_Prefix.pch.gch MonkeyGame_Prefix.pch normal i386 objective-c++ com.apple.compilers.gcc.4_2 cd /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios setenv LANG en_US.US-ASCII setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x objective-c++-header -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -fexceptions -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-version-min=10.6 -gdwarf-2 -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -iquote /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/MonkeyGame-generated-files.hmap -I/Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/MonkeyGame-own-target-headers.hmap -I/Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/MonkeyGame-all-target-headers.hmap -iquote /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/MonkeyGame-project-headers.hmap -F/Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/Debug-iphonesimulator -I/Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/Debug-iphonesimulator/include -I/Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/DerivedSources/i386 -I/Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/DerivedSources -c /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/MonkeyGame_Prefix.pch -o /var/folders/5p/5pHPx50nHSe7mK2xvY+RQk+++TM/-Caches-/com.apple.Xcode.502/SharedPrecompiledHeaders/MonkeyGame_Prefix-babetouycwrymffokpeyenrbcfmi/MonkeyGame_Prefix.pch.gch CompileC build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/Objects-normal/i386/main.o main.mm normal i386 objective-c++ com.apple.compilers.gcc.4_2 cd /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios setenv LANG en_US.US-ASCII setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x objective-c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -fexceptions -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-version-min=10.6 -gdwarf-2 -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -iquote /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/MonkeyGame-generated-files.hmap -I/Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/MonkeyGame-own-target-headers.hmap -I/Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/MonkeyGame-all-target-headers.hmap -iquote /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/MonkeyGame-project-headers.hmap -F/Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/Debug-iphonesimulator -I/Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/Debug-iphonesimulator/include -I/Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/DerivedSources/i386 -I/Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/DerivedSources -include /var/folders/5p/5pHPx50nHSe7mK2xvY+RQk+++TM/-Caches-/com.apple.Xcode.502/SharedPrecompiledHeaders/MonkeyGame_Prefix-babetouycwrymffokpeyenrbcfmi/MonkeyGame_Prefix.pch -c /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/main.mm -o /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/Objects-normal/i386/main.o /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/main.mm: In member function 'virtual void bb_testAnimation_Player::bbm_Update2()': /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/main.mm:7046: warning: unused variable 'bbt_Acceleration' Ld build/Debug-iphonesimulator/MonkeyGame.app/MonkeyGame normal i386 cd /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L/Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/Debug-iphonesimulator -F/Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/Debug-iphonesimulator -filelist /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/MonkeyGame.build/Debug-iphonesimulator/MonkeyGame.build/Objects-normal/i386/MonkeyGame.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -framework OpenGLES -framework QuartzCore -framework OpenAL -framework AudioToolbox -framework AVFoundation -o /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/Debug-iphonesimulator/MonkeyGame.app/MonkeyGame GenerateDSYMFile build/Debug-iphonesimulator/MonkeyGame.app.dSYM build/Debug-iphonesimulator/MonkeyGame.app/MonkeyGame cd /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin" /Developer/usr/bin/dsymutil /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/Debug-iphonesimulator/MonkeyGame.app/MonkeyGame -o /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/Debug-iphonesimulator/MonkeyGame.app.dSYM Touch build/Debug-iphonesimulator/MonkeyGame.app cd /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin" /usr/bin/touch -c /Users/kerrw/development/diddy/examples/Animation/testAnimation.build/ios/build/Debug-iphonesimulator/MonkeyGame.app ** BUILD SUCCEEDED ** No matching processes belonging to you were found Process Complete |
| ||
When this happens to me, I have to completely uninstall the app from my device, then build from XCode again. Maybe the Simulator has similar problems. Also, in XCode, I will turn off running the app in the background in the plist file so every time it starts, it's fresh. But I too have had the problem of it starting, then just exiting. |
| ||
I saw that usually with IOS/Monkey incompatible sound files. |
| ||
I should be using .m4a files correct? Is there a way to test that my files are correctly formatted, or does iOS write to a log file that I can see where it's crashing? |
| ||
m4a works. On my iPad2 that is. For the sound conversion, I do use: AAC (LC) encoder (Lavfs52.64.2) 16 bit / 44.1Khz / Stereo - Lossy Good luck! (And reinstalling the app from zero is needed at times indeed...) |