Skip to content

Instantly share code, notes, and snippets.

@vchimev
Created September 2, 2015 13:36
Show Gist options
  • Save vchimev/e054b8d10139cfc8c2c8 to your computer and use it in GitHub Desktop.
Save vchimev/e054b8d10139cfc8c2c8 to your computer and use it in GitHub Desktop.
VCHIMEVMAC:master vchimev$ node_modules/.bin/tns build ios --path myApp --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:
------------------------------------------------------------
Gradle 2.6
------------------------------------------------------------
Build time: 2015-08-10 13:15:06 UTC
Build number: none
Revision: 233bbf8e47c82f72cb898b3e0a96b85d0aad166e
Groovy: 2.3.10
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.8.0_60 (Oracle Corporation 25.60-b23)
OS: Mac OS X 10.10.5 x86_64
stderr:
Exec javac -version
stdout:
stderr: javac 1.8.0_60
System information:
{ procInfo: 'nativescript/1.3.0-325',
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: '2.6',
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/myApp'
Project directory is '/Work/master/myApp'.
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:
Project successfully prepared
spawn: xcodebuild -configuration Debug build SHARED_PRECOMPS_DIR=/Work/master/myApp/platforms/ios/build/sharedpch -project /Work/master/myApp/platforms/ios/myApp.xcodeproj -target myApp -sdk iphonesimulator -arch i386 VALID_ARCHS="i386" CONFIGURATION_BUILD_DIR=/Work/master/myApp/platforms/ios/build/emulator
Build settings from command line:
ARCHS = i386
CONFIGURATION_BUILD_DIR = /Work/master/myApp/platforms/ios/build/emulator
SDKROOT = iphonesimulator8.4
SHARED_PRECOMPS_DIR = /Work/master/myApp/platforms/ios/build/sharedpch
VALID_ARCHS = "i386"
=== BUILD TARGET myApp OF PROJECT myApp WITH CONFIGURATION Debug ===
Check dependencies
PhaseScriptExecution Generate\ Metadata build/myApp.build/Debug-iphonesimulator/myApp.build/Script-C97FD7AC1ADE5369004DB2A4.sh
cd /Work/master/myApp/platforms/ios
/bin/sh -c /Work/master/myApp/platforms/ios/build/myApp.build/Debug-iphonesimulator/myApp.build/Script-C97FD7AC1ADE5369004DB2A4.sh
Generating metadata for i386:
Parsed header search paths:
"/Work/master/myApp/platforms/ios/build/emulator/include"
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include"
"/Applications/Xcode6.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include"
"/Work/master/myApp/platforms/ios/NativeScript/include"
Parsed framework search paths:
"/Work/master/myApp/platforms/ios/build/emulator"
"/Work/master/myApp/platforms/ios"
"/Work/master/myApp/platforms/ios/../../lib/iOS"
Clang parameters: -v -x objective-c -fno-objc-arc -fmodule-maps -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -arch i386 -target arm-apple-darwin -std=gnu99 -miphoneos-version-min=7.0 -Wno-unknown-pragmas -Wno-ignored-attributes -ferror-limit=0 -I/Work/master/myApp/platforms/ios/build/emulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode6.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Work/master/myApp/platforms/ios/NativeScript/include -F/Work/master/myApp/platforms/ios/build/emulator -F/Work/master/myApp/platforms/ios -F/Work/master/myApp/platforms/ios/../../lib/iOS
Merged 399 categories.
Result: 23747 declarations from 78 top level modules
Done! Running time: 1.6578 sec
Ld build/emulator/myApp.app/myApp normal i386
cd /Work/master/myApp/platforms/ios
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin:/Users/vchimev/Library/Android/sdk/platform-tools:/Users/vchimev/Library/Android/sdk/tools:/Work/Ant/bin:/Work/Maven/bin:/Work/Gradle/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -L/Work/master/myApp/platforms/ios/build/emulator -L/Work/master/myApp/platforms/ios/NativeScript/lib -F/Work/master/myApp/platforms/ios/build/emulator -F/Work/master/myApp/platforms/ios -F/Work/master/myApp/platforms/ios/../../lib/iOS -filelist /Work/master/myApp/platforms/ios/build/myApp.build/Debug-iphonesimulator/myApp.build/Objects-normal/i386/myApp.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -sectcreate __DATA __TNSMetadata /Work/master/myApp/platforms/ios/build/emulator/metadata-i386.bin -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.0 -licucore -lz -lc++ -weak_framework Foundation -weak_framework UIKit -framework MobileCoreServices -lNativeScript -Xlinker -dependency_info -Xlinker /Work/master/myApp/platforms/ios/build/myApp.build/Debug-iphonesimulator/myApp.build/Objects-normal/i386/myApp_dependency_info.dat -o /Work/master/myApp/platforms/ios/build/emulator/myApp.app/myApp
ld: warning: directory not found for option '-F/Work/master/myApp/platforms/ios/../../lib/iOS'
ld: can't open -sectcreate file: /Work/master/myApp/platforms/ios/build/emulator/metadata-i386.bin
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/emulator/myApp.app/myApp normal i386
(1 failure)
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.
VCHIMEVMAC:master vchimev$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment