Failure while building the project environment


#1

I get this error:
$ ionic package info 7

id │ 7
status │ FAILED
platform │ ios
mode │ debug
started │ Jan 2nd, 2016 19:03:41

output:

Failure while building the project environment


Where can i get more info / a solution?


#2

the error is a little bit unspecific.

could you run ionic build ios in your project “7” and post the output?


#3

Running command: /Users/mean/Documents/myApp/hooks/after_prepare/010_add_platform_class.js /Users/mean/Documents/myApp
add to body class: platform-ios
Running command: /Users/mean/Documents/myApp/package-hooks/ios9_allow_http.sh /Users/mean/Documents/myApp
Running command: /Users/mean/Documents/myApp/platforms/ios/cordova/build
Building project : /Users/mean/Documents/myApp/platforms/ios/myApp.xcodeproj
Configuration : Debug
Platform : emulator
Build settings from command line:
ARCHS = i386
CONFIGURATION_BUILD_DIR = /Users/mean/Documents/myApp/platforms/ios/build/emulator
SDKROOT = iphonesimulator9.2
SHARED_PRECOMPS_DIR = /Users/mean/Documents/myApp/platforms/ios/build/sharedpch
VALID_ARCHS = i386

Build settings from configuration file ‘/Users/mean/Documents/myApp/platforms/ios/cordova/build-debug.xcconfig’:
CODE_SIGN_IDENTITY = iPhone Developer
CODE_SIGN_RESOURCE_RULES_PATH = $(SDKROOT)/ResourceRules.plist

=== BUILD TARGET CordovaLib OF PROJECT CordovaLib WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET myApp OF PROJECT myApp WITH CONFIGURATION Debug ===

Check dependencies

PhaseScriptExecution Copy\ www\ directory build/myApp.build/Debug-iphonesimulator/myApp.build/Script-304B58A110DAC018002A0835.sh
cd /Users/mean/Documents/myApp/platforms/ios
/bin/sh -c /Users/mean/Documents/myApp/platforms/ios/build/myApp.build/Debug-iphonesimulator/myApp.build/Script-304B58A110DAC018002A0835.sh

real 0m1.539s
user 0m0.288s
sys 0m0.558s

CpResource myApp/Resources/icons/icon-40@2x.png build/emulator/myApp.app/icon-40@2x.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/icons/icon-40@2x.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/icons/icon-76.png build/emulator/myApp.app/icon-76.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/icons/icon-76.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/icons/icon-72.png build/emulator/myApp.app/icon-72.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/icons/icon-72.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/splash/Default-Landscape@2x~ipad.png build/emulator/myApp.app/Default-Landscape@2x~ipad.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/splash/Default-Landscape@2x~ipad.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/splash/Default-Landscape~ipad.png build/emulator/myApp.app/Default-Landscape~ipad.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/splash/Default-Landscape~ipad.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/splash/Default-Portrait@2x~ipad.png build/emulator/myApp.app/Default-Portrait@2x~ipad.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/splash/Default-Portrait@2x~ipad.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/icons/icon-small@2x.png build/emulator/myApp.app/icon-small@2x.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/icons/icon-small@2x.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/splash/Default-Portrait~ipad.png build/emulator/myApp.app/Default-Portrait~ipad.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/splash/Default-Portrait~ipad.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/splash/Default-667h.png build/emulator/myApp.app/Default-667h.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/splash/Default-667h.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/icons/icon-40.png build/emulator/myApp.app/icon-40.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/icons/icon-40.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/splash/Default@2x~iphone.png build/emulator/myApp.app/Default@2x~iphone.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/splash/Default@2x~iphone.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/icons/icon-60.png build/emulator/myApp.app/icon-60.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/icons/icon-60.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/splash/Default~iphone.png build/emulator/myApp.app/Default~iphone.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/splash/Default~iphone.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/splash/Default-568h@2x~iphone.png build/emulator/myApp.app/Default-568h@2x~iphone.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/splash/Default-568h@2x~iphone.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/splash/Default-Landscape-736h.png build/emulator/myApp.app/Default-Landscape-736h.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/splash/Default-Landscape-736h.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/icons/icon-60@3x.png build/emulator/myApp.app/icon-60@3x.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/icons/icon-60@3x.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/icons/icon-50@2x.png build/emulator/myApp.app/icon-50@2x.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/icons/icon-50@2x.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/icons/icon-76@2x.png build/emulator/myApp.app/icon-76@2x.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/icons/icon-76@2x.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/icons/icon-72@2x.png build/emulator/myApp.app/icon-72@2x.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/icons/icon-72@2x.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/splash/Default-736h.png build/emulator/myApp.app/Default-736h.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/splash/Default-736h.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/icons/icon.png build/emulator/myApp.app/icon.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/icons/icon.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/icons/icon@2x.png build/emulator/myApp.app/icon@2x.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/icons/icon@2x.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/icons/icon-50.png build/emulator/myApp.app/icon-50.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/icons/icon-50.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/icons/icon-60@2x.png build/emulator/myApp.app/icon-60@2x.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/icons/icon-60@2x.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

CpResource myApp/Resources/icons/icon-small.png build/emulator/myApp.app/icon-small.png
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mean/Documents/myApp/platforms/ios/myApp/Resources/icons/icon-small.png /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app

ProcessInfoPlistFile build/emulator/myApp.app/Info.plist myApp/myApp-Info.plist
cd /Users/mean/Documents/myApp/platforms/ios
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"
builtin-infoPlistUtility /Users/mean/Documents/myApp/platforms/ios/myApp/myApp-Info.plist -genpkginfo /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -additionalcontentfile /Users/mean/Documents/myApp/platforms/ios/build/myApp.build/Debug-iphonesimulator/myApp.build/MainViewController-PartialInfo.plist -o /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app/Info.plist

GenerateDSYMFile build/emulator/myApp.app.dSYM build/emulator/myApp.app/myApp
cd /Users/mean/Documents/myApp/platforms/ios
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"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app/myApp -o /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app.dSYM

Touch build/emulator/myApp.app
cd /Users/mean/Documents/myApp/platforms/ios
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"
/usr/bin/touch -c /Users/mean/Documents/myApp/platforms/ios/build/emulator/myApp.app


#4

hello, have u solve this issue?
when I run ‘ionic package build android’ ,I get the same error .
If you have any idea of this, pls help me .


#5

@dujc I ran into the same problem, so I ran ionic build android and came up with

Running command: /home/iampersistent/code/zestic/hooks/after_prepare/010_add_platform_class.js /home/iampersistent/code/zestic Error: spawn EACCES

I did a permissions change chmod +x hooks/after_prepare/010_add_platform_class.js
and got a new error

Error: Cannot find module 'shelljs'

so I installed shelljs npm install shelljs --save

at this point ionic build android was successful so I ran ionic package build android again and it succeeded.


#6

How do I run this command in ionic creator?