add target to build for simulator

This commit is contained in:
Dane Springmeyer
2014-02-04 14:52:30 -08:00
parent bffb09c004
commit e2ea6c52a7
3 changed files with 9 additions and 3 deletions

View File

@@ -31,6 +31,12 @@ iapp: config.gypi src ios/llmr-app.gyp
xcodebuild -project ./ios/llmr-app.xcodeproj
# launch app with ios-sim?
isim: config.gypi src ios/llmr-app.gyp
deps/run_gyp ios/llmr-app.gyp -Goutput_dir=./out/ --depth=. --generator-output=./ -f xcode
xcodebuild -project ./ios/llmr-app.xcodeproj -arch i386 -sdk iphonesimulator
# does not work
#"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone Simulator" -SimulateApplication ios/build/Release-iphonesimulator/llmr.app/llmr
clean:
-rm -rf out
-rm -rf build

View File

@@ -30,7 +30,7 @@
'xcode_settings': {
'SDKROOT': 'iphoneos',
'SUPPORTED_PLATFORMS':['iphonesimulator','iphoneos'],
'ARCHS': [ "armv7", "armv7s", "arm64" ],
'ARCHS': [ "armv7", "armv7s", "arm64", "i386" ],
'OTHER_LDFLAGS': [
'-stdlib=libc++'
],

View File

@@ -64,8 +64,8 @@
],
'xcode_settings': {
'SDKROOT': 'iphoneos',
'SUPPORTED_PLATFORMS':['iphonesimulator','iphoneos'],
'ARCHS': [ "armv7", "armv7s", "arm64" ],
'SUPPORTED_PLATFORMS':['iphonesimulator','iphoneos',],
'ARCHS': [ "armv7", "armv7s", "arm64", "i386" ],
'TARGETED_DEVICE_FAMILY': '1,2',
'CODE_SIGN_IDENTITY': 'iPhone Developer',
'IPHONEOS_DEPLOYMENT_TARGET': '5.0',