Comments (17)
Probably. On Xcode 5 on Mavericks its fine. I'll leave this open until I can test on Xcode 6
from ios-deploy.
I'm using Xcode 5.1.1 (5B1008) on OS 10.9.3 and have the exact same issue
$ npm -v
1.4.14
$ gcc --version
gcc (GCC) 4.8.3
> [email protected] preinstall /usr/local/lib/node_modules/ios-deploy
> make ios-deploy
rm -rf *.app demo ios-deploy
gcc -ObjC -g -o ios-deploy -framework Foundation -framework CoreFoundation -framework MobileDevice -F/System/Library/PrivateFrameworks ios-deploy.c
cc1: error: argument to '-O' should be a non-negative integer, 'g', 's' or 'fast'
make: *** [ios-deploy] Error 1
npm ERR! [email protected] preinstall: `make ios-deploy`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is most likely a problem with the ios-deploy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! make ios-deploy
npm ERR! You can get their info via:
npm ERR! npm owner ls ios-deploy
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "ios-deploy"
npm ERR! cwd /Users/user/Documents/Addict/net.addictradio.player
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/user/Documents/net.addictradio.player/npm-debug.log
npm ERR! not ok code 0
from ios-deploy.
Additional output from npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'install', '-g', 'ios-deploy' ]
2 info using [email protected]
3 info using [email protected]
4 verbose node symlink /usr/local/bin/node
5 verbose cache add [ 'ios-deploy', null ]
6 verbose cache add name=undefined spec="ios-deploy" args=["ios-deploy",null]
7 verbose parsed url { protocol: null,
7 verbose parsed url slashes: null,
7 verbose parsed url auth: null,
7 verbose parsed url host: null,
7 verbose parsed url port: null,
7 verbose parsed url hostname: null,
7 verbose parsed url hash: null,
7 verbose parsed url search: null,
7 verbose parsed url query: null,
7 verbose parsed url pathname: 'ios-deploy',
7 verbose parsed url path: 'ios-deploy',
7 verbose parsed url href: 'ios-deploy' }
8 silly lockFile 69149c11-ios-deploy ios-deploy
9 verbose lock ios-deploy /Users/alepee/.npm/69149c11-ios-deploy.lock
10 silly lockFile 69149c11-ios-deploy ios-deploy
11 silly lockFile 69149c11-ios-deploy ios-deploy
12 verbose addNamed [ 'ios-deploy', '' ]
13 verbose addNamed [ null, '*' ]
14 silly lockFile 9c508a6b-ios-deploy ios-deploy@
15 verbose lock ios-deploy@ /Users/alepee/.npm/9c508a6b-ios-deploy.lock
16 silly addNameRange { name: 'ios-deploy', range: '*', hasData: false }
17 verbose url raw ios-deploy
18 verbose url resolving [ 'https://registry.npmjs.org/', './ios-deploy' ]
19 verbose url resolved https://registry.npmjs.org/ios-deploy
20 info trying registry request attempt 1 at 12:19:14
21 verbose etag "BN4LEBY3MNXFMR9P1OMILG15O"
22 http GET https://registry.npmjs.org/ios-deploy
23 http 304 https://registry.npmjs.org/ios-deploy
24 silly registry.get cb [ 304,
24 silly registry.get { date: 'Tue, 08 Jul 2014 10:19:15 GMT',
24 silly registry.get server: 'Apache',
24 silly registry.get via: '1.1 varnish',
24 silly registry.get 'last-modified': 'Tue, 08 Jul 2014 10:19:15 GMT',
24 silly registry.get 'cache-control': 'max-age=30',
24 silly registry.get etag: '"BN4LEBY3MNXFMR9P1OMILG15O"',
24 silly registry.get 'x-served-by': 'cache-ams4122-AMS',
24 silly registry.get 'x-cache': 'HIT',
24 silly registry.get 'x-cache-hits': '1',
24 silly registry.get 'x-timer': 'S1404814755.191581,VS0,VE158',
24 silly registry.get vary: 'Accept',
24 silly registry.get 'content-length': '0',
24 silly registry.get 'keep-alive': 'timeout=10, max=50',
24 silly registry.get connection: 'Keep-Alive' } ]
25 verbose etag ios-deploy from cache
26 silly addNameRange number 2 { name: 'ios-deploy', range: '*', hasData: true }
27 silly addNameRange versions [ 'ios-deploy',
27 silly addNameRange [ '1.0.1',
27 silly addNameRange '1.0.2',
27 silly addNameRange '1.0.3',
27 silly addNameRange '1.0.4',
27 silly addNameRange '1.0.5',
27 silly addNameRange '1.0.6',
27 silly addNameRange '1.0.7',
27 silly addNameRange '1.0.8' ] ]
28 verbose addNamed [ 'ios-deploy', '1.0.8' ]
29 verbose addNamed [ '1.0.8', '1.0.8' ]
30 silly lockFile 211a3cb3-ios-deploy-1-0-8 [email protected]
31 verbose lock [email protected] /Users/alepee/.npm/211a3cb3-ios-deploy-1-0-8.lock
32 silly lockFile 211a3cb3-ios-deploy-1-0-8 [email protected]
33 silly lockFile 211a3cb3-ios-deploy-1-0-8 [email protected]
34 silly lockFile 9c508a6b-ios-deploy ios-deploy@
35 silly lockFile 9c508a6b-ios-deploy ios-deploy@
36 silly resolved [ { name: 'ios-deploy',
36 silly resolved version: '1.0.8',
36 silly resolved description: 'launch iOS apps iOS devices from the command line (Xcode 5)',
36 silly resolved main: 'ios-deploy',
36 silly resolved scripts: { preinstall: 'make ios-deploy' },
36 silly resolved bin: { 'ios-deploy': './ios-deploy' },
36 silly resolved repository: { type: 'git', url: 'https://github.com/phonegap/ios-deploy' },
36 silly resolved keywords: [ 'ios-deploy', 'deploy to iOS device' ],
36 silly resolved author: { name: 'Greg Hughes' },
36 silly resolved license: 'GPLv3',
36 silly resolved _id: '[email protected]',
36 silly resolved dist:
36 silly resolved { shasum: '31ce07ec3a39f2f009b16d85f4c5331d5131c54f',
36 silly resolved tarball: 'http://registry.npmjs.org/ios-deploy/-/ios-deploy-1.0.8.tgz' },
36 silly resolved _from: 'ios-deploy@',
36 silly resolved _npmVersion: '1.2.14',
36 silly resolved _npmUser: { name: 'shazron', email: '[email protected]' },
36 silly resolved maintainers: [ [Object] ],
36 silly resolved directories: {},
36 silly resolved _shasum: '31ce07ec3a39f2f009b16d85f4c5331d5131c54f',
36 silly resolved _resolved: 'https://registry.npmjs.org/ios-deploy/-/ios-deploy-1.0.8.tgz',
36 silly resolved bugs: { url: 'https://github.com/phonegap/ios-deploy/issues' },
36 silly resolved readme: 'ERROR: No README data found!',
36 silly resolved homepage: 'https://github.com/phonegap/ios-deploy' } ]
37 info install [email protected] into /usr/local/lib
38 info installOne [email protected]
39 info /usr/local/lib/node_modules/ios-deploy unbuild
40 verbose tar unpack /Users/alepee/.npm/ios-deploy/1.0.8/package.tgz
41 silly lockFile d4189100-ocal-lib-node-modules-ios-deploy tar:///usr/local/lib/node_modules/ios-deploy
42 verbose lock tar:///usr/local/lib/node_modules/ios-deploy /Users/alepee/.npm/d4189100-ocal-lib-node-modules-ios-deploy.lock
43 silly lockFile a4ffc773-npm-ios-deploy-1-0-8-package-tgz tar:///Users/alepee/.npm/ios-deploy/1.0.8/package.tgz
44 verbose lock tar:///Users/alepee/.npm/ios-deploy/1.0.8/package.tgz /Users/alepee/.npm/a4ffc773-npm-ios-deploy-1-0-8-package-tgz.lock
45 silly gunzTarPerm modes [ '755', '644' ]
46 silly gunzTarPerm extractEntry package.json
47 silly gunzTarPerm extractEntry .npmignore
48 silly gunzTarPerm extractEntry README.md
49 silly gunzTarPerm extractEntry LICENSE
50 silly gunzTarPerm extractEntry Entitlements.plist
51 silly gunzTarPerm extractEntry Info.plist
52 silly gunzTarPerm extractEntry Makefile
53 silly gunzTarPerm extractEntry CONTRIBUTING.md
54 silly gunzTarPerm extractEntry ResourceRules.plist
55 silly gunzTarPerm extractEntry demo.c
56 silly gunzTarPerm extractEntry ios-deploy.c
57 silly gunzTarPerm extractEntry MobileDevice.h
58 silly lockFile d4189100-ocal-lib-node-modules-ios-deploy tar:///usr/local/lib/node_modules/ios-deploy
59 silly lockFile d4189100-ocal-lib-node-modules-ios-deploy tar:///usr/local/lib/node_modules/ios-deploy
60 silly lockFile a4ffc773-npm-ios-deploy-1-0-8-package-tgz tar:///Users/alepee/.npm/ios-deploy/1.0.8/package.tgz
61 silly lockFile a4ffc773-npm-ios-deploy-1-0-8-package-tgz tar:///Users/alepee/.npm/ios-deploy/1.0.8/package.tgz
62 info preinstall [email protected]
63 verbose unsafe-perm in lifecycle true
64 info [email protected] Failed to exec preinstall script
65 info /usr/local/lib/node_modules/ios-deploy unbuild
66 info preuninstall [email protected]
67 info uninstall [email protected]
68 verbose true,/usr/local/lib/node_modules,/usr/local/lib/node_modules unbuild [email protected]
69 verbose /usr/local/bin,[object Object] binRoot
70 info postuninstall [email protected]
71 error [email protected] preinstall: `make ios-deploy`
71 error Exit status 2
72 error Failed at the [email protected] preinstall script.
72 error This is most likely a problem with the ios-deploy package,
72 error not with npm itself.
72 error Tell the author that this fails on your system:
72 error make ios-deploy
72 error You can get their info via:
72 error npm owner ls ios-deploy
72 error There is likely additional logging output above.
73 error System Darwin 13.3.0
74 error command "node" "/usr/local/bin/npm" "install" "-g" "ios-deploy"
75 error cwd /Users/alepee/Documents/Printklub/com.printklub.hal
76 error node -v v0.10.28
77 error npm -v 1.4.14
78 error code ELIFECYCLE
79 verbose exit [ 1, true ]
from ios-deploy.
Same issue. OS X 10.9.3, Xcode 5.1.1, npm 1.4.6
from ios-deploy.
Try re-installing Xcode Command Line Tools? Also do you have dual Xcode 5.1.1 and 6.0 installed side by side?
Try including more info from here: https://github.com/phonegap/ios-deploy/blob/master/CONTRIBUTING.md
from ios-deploy.
Having the same problem on OS X 10.9.4 and XCode 5.1.1 and npm 1.5.0-alpha-1. I only have XCode 5 installed.
from ios-deploy.
Tried reinstalling XCode Command line tools from this: "Command Line Tools (OS X 10.9) for Xcode - September 2014". I still get the same error encountered by alepee.
Here's the output from the suggested version check:
# sw_vers -productVersion
10.9.4
# ios-sim --version
2.0.1
# xcodebuild -version
Xcode 5.1.1
Build version 5B1008
# xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
# gcc --version
gcc (GCC) 4.8.3
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
from ios-deploy.
Same here:
Xcode 6.0.1
Build version 6A317
gcc (GCC) 4.8.1 20130404 (prerelease)
ios-sim
3.0.0
osx version:
10.9.5
and npm:
1.3.24
from ios-deploy.
The latest version is 1.2.0, please retry.
I tried with both Xcode 5.1.1 and Xcode 6 command line tools.
from ios-deploy.
Any resolution? Same here
rm -rf .app demo ios-deploy
gcc -ObjC -g -o ios-deploy -framework Foundation -framework CoreFoundation -framework MobileDevice -F/System/Library/PrivateFrameworks ios-deploy.c
cc1: error: argument to '-O' should be a non-negative integer
make: ** [ios-deploy] Error 1
JEFFs-Mac-mini:my-app brubaker$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin13/4.7.3/lto-wrapper
Target: x86_64-apple-darwin13
Configured with: /opt/local/var/macports/build/_opt_mports_dports_lang_gcc47/gcc47/work/gcc-4.7.3/configure --prefix=/opt/local --build=x86_64-apple-darwin13 --enable-languages=c,c++,objc,obj-c++,lto,fortran,java --libdir=/opt/local/lib/gcc47 --includedir=/opt/local/include/gcc47 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.7 --with-libiconv-prefix=/opt/local --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.7 --with-gxx-include-dir=/opt/local/include/gcc47/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-ppl=/opt/local --with-cloog=/opt/local --enable-cloog-backend=isl --disable-cloog-version-check --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --disable-ppl-version-check --with-pkgversion='MacPorts gcc47 4.7.3_5'
Thread model: posix
gcc version 4.7.3 (MacPorts gcc47 4.7.3_5)
Is this the right gcc?
from ios-deploy.
�� I switched the configuration to a use different gcc and it worked.
I think this is the Apple version of gcc and not the compilation has problems with the MacPorts version
gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
from ios-deploy.
Version 1.3.0 has been published with lots of bug fixes (thanks @senthilmanick). Try it out. Re-open if this is still a problem.
from ios-deploy.
I'm still receiving this error with 1.3.2 - xcode 6.1.1
npm ERR! [email protected] preinstall: make ios-deploy
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] preinstall script 'make ios-deploy'.
from ios-deploy.
@streetkid report your settings from here: https://github.com/phonegap/ios-deploy/blob/master/CONTRIBUTING.md
from ios-deploy.
Hi, I've worked around it by upgrading to Yosemite. I wasn't able to correctly install gcc.
Not sure if that was the cause of the failed ios-deploy install. Thanks
from ios-deploy.
I had this same issue @1.3.2, xcode 6.1.1, Yosemite. FWIW, I used this workaround (see comment by magusd on 8/14):
from ios-deploy.
Thanks @kitefishlabs
Direct link to comment: npm/npm#5890 (comment)
Seems the fix is to use clang instead of gcc.
from ios-deploy.
Related Issues (20)
- ios-deploy[62544:3006278] [ !! ] Error 0xe800000e: End of file. AMDeviceSecureTransferPath(0, device, url, options, transfer_callback, 0) HOT 2
- Cannot remove files in DCIM
- --justlaunch argument fails trying to index dictionary with nil HOT 1
- Can't install with xcode 14.3 HOT 1
- 1.12.2 release was not completed HOT 3
- VendContainer support for HouseArrest service HOT 1
- Cant build after uninstalling this package HOT 2
- A way to launch in suspended state, to run debugger commands before an early crash HOT 1
- DeveloperDiskImage.dmg for iOS 17 not found in Xcode 15 HOT 16
- Python multithreading ios-deploy with subprocess hangs HOT 1
- can I run an app with bundleid not bundle
- ios-deploy -c -j does not return a correct json format HOT 1
- ios-deploy -c -j does not return correct json format HOT 1
- ios-deploy - Unable to mount developer disk image ios16 HOT 3
- App launched with `--justlaunch` immediately crashes when trying to print to stdout HOT 1
- Debug logs are not printed to iphone systen log when running ios-deploy command over Wi-Fi connected iPhones.
- iOS
- Vision Pro support? HOT 1
- Is there a way to connect ios devices without using Xcode GUI?
- ios-deploy[14310:720906] [ !! ] Error 0xe8000080: This application does not support this kind of device. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-deploy.