Skip to content

Instantly share code, notes, and snippets.

@vchimev
Created August 28, 2015 11:47
Show Gist options
  • Save vchimev/b004ab09dc188be2b712 to your computer and use it in GitHub Desktop.
Save vchimev/b004ab09dc188be2b712 to your computer and use it in GitHub Desktop.
VCHIMEVMAC:TNS_App vchimev$ ../node_modules/.bin/tns build ios --log trace
Exec uname -a
stdout: Darwin VCHIMEVMAC.local 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64
stderr:
Exec npm -v
stdout: 2.12.1
stderr:
spawn: java -version
Exec ant -version
stdout: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
stderr:
Exec node-gyp -v
stdout:
stderr: /bin/sh: node-gyp: command not found
Exec xcodebuild -version
stdout: Xcode 6.4
Build version 6E35b
stderr:
Exec adb version
stdout: Android Debug Bridge version 1.0.32
Revision 57224c5cff69-android
stderr:
Exec android -h
stdout:
Usage:
android [global options] action [action options]
Global options:
-s --silent : Silent mode, shows errors only.
-v --verbose : Verbose mode, shows errors, warnings and all messages.
--clear-cache: Clear the SDK Manager repository manifest cache.
-h --help : Help on a specific command.
Valid
actions
are
composed
of a verb
and an
optional
direct
object:
- sdk : Displays the SDK Manager window.
- avd : Displays the AVD Manager window.
- list : Lists existing targets or virtual devices.
- list avd : Lists existing Android Virtual Devices.
- list target : Lists existing targets.
- list device : Lists existing devices.
- list sdk : Lists remote SDK repository.
- create avd : Creates a new Android Virtual Device.
- move avd : Moves or renames an Android Virtual Device.
- delete avd : Deletes an Android Virtual Device.
- update avd : Updates an Android Virtual Device to match the folders
of a new SDK.
- create project : Creates a new Android project.
- update project : Updates an Android project (must already have an
AndroidManifest.xml).
- create test-project : Creates a new Android project for a test package.
- update test-project : Updates the Android project for a test package (must
already have an AndroidManifest.xml).
- create lib-project : Creates a new Android library project.
- update lib-project : Updates an Android library project (must already have
an AndroidManifest.xml).
- create uitest-project: Creates a new UI test project.
- update adb : Updates adb to support the USB devices declared in the
SDK add-ons.
- update sdk : Updates the SDK by suggesting new platforms to install
if available.
stderr:
Exec mono --version
stdout:
stderr: /bin/sh: mono: command not found
Exec git --version
stdout: git version 2.3.2 (Apple Git-55)
stderr:
Exec gradle -v
stdout:
stderr: /bin/sh: gradle: command not found
Exec javac -version
stdout:
stderr: javac 1.8.0_60
System information:
{ procInfo: 'nativescript/1.2.4-314',
platform: 'darwin',
os: 'Darwin VCHIMEVMAC.local 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64\n',
shell: '/bin/bash',
dotNetVer: null,
procArch: 'x64',
nodeVer: 'v0.12.7',
npmVer: '2.12.1',
javaVer: '1.8.0',
antVer: 'Apache Ant(TM) version 1.9.6 compiled on June 29 2015',
nodeGypVer: null,
xcodeVer: 'Xcode 6.4\nBuild version 6E35b\n',
itunesInstalled: true,
adbVer: 'Android Debug Bridge version 1.0.32',
androidInstalled: true,
monoVer: null,
gitVer: '2.3.2 (Apple Git-55)',
gradleVer: null,
javacVersion: '1.8.0_60' }
Initializing analytics statuses.
Analytics statuses:
{ TrackFeatureUsage: 1, TrackExceptions: 0 }
Trying to track feature 'CLI' with value 'build'.
BeforeHookName for command build-ios is before-build-ios
AfterHookName for command build-ios is after-build-ios
Looking for project in '/Work/master/TNS_App'
Project directory is '/Work/master/TNS_App'.
spawn: adb version
Analytics statuses:
{ TrackFeatureUsage: 1, TrackExceptions: 0 }
Trying to track feature 'CLI' with value 'build|ios'.
BeforeHookName for command build|ios is before-build
AfterHookName for command build|ios is after-build
Images from Xcode project
[ 'Default-568h@2x.png',
'Default-Landscape.png',
'Default-Landscape@2x.png',
'Default-Portrait.png',
'Default-Portrait@2x.png',
'Default.png',
'Default@2x.png',
'Icon-Small-50.png',
'Icon-Small-50@2x.png',
'Icon-Small.png',
'Icon-Small@2x.png',
'icon-40.png',
'icon-40@2x.png',
'icon-60.png',
'icon-60@2x.png',
'icon-72.png',
'icon-72@2x.png',
'icon-76.png',
'icon-76@2x.png',
'icon.png',
'icon@2x.png' ]
Current images from App_Resources
[ 'Default-568h@2x.png',
'Default-Landscape.png',
'Default-Landscape@2x.png',
'Default-Portrait.png',
'Default-Portrait@2x.png',
'Default.png',
'Default@2x.png',
'Icon-Small-50.png',
'Icon-Small-50@2x.png',
'Icon-Small.png',
'Icon-Small@2x.png',
'icon-40.png',
'icon-40@2x.png',
'icon-60.png',
'icon-60@2x.png',
'icon-72.png',
'icon-72@2x.png',
'icon-76.png',
'icon-76@2x.png',
'icon.png',
'icon@2x.png' ]
New images to add into xcode project:
Images to remove from xcode project:
Exec npm install
stdout:
stderr: npm WARN package.json @ No description
npm WARN package.json @ No repository field.
npm WARN package.json @ No README data
npm WARN package.json @ No license field.
Project successfully prepared
spawn: xcodebuild -configuration Debug build SHARED_PRECOMPS_DIR=/Work/master/TNS_App/platforms/ios/build/sharedpch -workspace /Work/master/TNS_App/platforms/ios/TNSApp.xcworkspace -scheme TNSApp -sdk iphonesimulator -arch i386 VALID_ARCHS="i386" CONFIGURATION_BUILD_DIR=/Work/master/TNS_App/platforms/ios/build/emulator
Build settings from command line:
ARCHS = i386
CONFIGURATION_BUILD_DIR = /Work/master/TNS_App/platforms/ios/build/emulator
SDKROOT = iphonesimulator8.4
SHARED_PRECOMPS_DIR = /Work/master/TNS_App/platforms/ios/build/sharedpch
VALID_ARCHS = "i386"
xcodebuild: error: The workspace 'TNSApp' does not contain a scheme named 'TNSApp'.
Command xcodebuild failed with exit code 65
Analytics statuses:
{ TrackFeatureUsage: 1, TrackExceptions: 0 }
Trying to track feature 'CLI' with value 'help'.
List of registered commands: /?, autocomplete, autocomplete|disable, autocomplete|enable, autocomplete|status, build, build|android, build|ios, create, debug, debug|android, debug|ios, deploy, device, device|android, device|get-file, device|ios, device|list-applications, device|list-files, device|log, device|put-file, device|run, device|stop, device|uninstall, doctor, emulate, emulate|android, emulate|ios, error-reporting, help, init, install, library, library|add, livesync, platform, platform|add, platform|remove, platform|update, plugin, plugin|add, plugin|remove, prepare, run, run|android, run|ios, usage-reporting
Reading help for command 'build|ios'. FileName is 'build-ios.md'.
# build ios
┌─────────┬────────────────────────────────────────────┐
│ Usage │ Synopsis │
│ General │ $ tns build ios [--for-device] [--release] │
└─────────┴────────────────────────────────────────────┘
Builds the project for iOS and produces an APP or IPA that you can manually deploy in the iOS Simulator or on device, respectively.
IMPORTANT: Before building for iOS device, verify that you have configured a valid pair of certificate and provisioning profile on your OS X system.
### Options
* --release - If set, produces a release build. Otherwise, produces a debug build.
* --for-device - If set, produces an application package that you can deploy on device. Otherwise, produces a build that you can run only in the native iOS Simulator.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment