-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ios-deploy install fails #308
Comments
Hello, when you filed a new issue, you deleted the template of requirements needed for filing a bug report. Please do that, there is not enough information. Without it, this issue will be closed. |
Updated |
This is the root of the problem: |
It seems to have vanished from Xcode 9, but curiously is in the Command-Line Tools package Apple also distributes and after installing that it becomes available at the usual:
Build still fails though. |
It's probably looking for it at: where $XCODE is: |
However, the linker does look for it at the location you found, see: https://github.com/phonegap/ios-deploy/blob/35c2c55fd15c3d20921941b44e3fd41b890f4253/ios-deploy.xcodeproj/project.pbxproj#L377-L380 |
Yeah, this is enforced. If you flip it back to the CLT using This smells like an Xcode bug to me, I can't imagine why this behaviour would be intentional. If you create any small valid
It fails with the now rather familiar:
But if you explicitly use the
|
Similar report in #311 |
Apple is aware of the issue. Last update was 3 days ago, an acknowledgement that they are looking into it with the information provided. |
Apparently if some Apple took 10+ days to decide they had no interest in fixing the bug. So I can link to other private frameworks just fine, so, I'm hoping they accidentally fix linking this specific one. |
Trying to fix For which updating header paths was not helping, I decided to install ios-deploy and now I'm getting the very same error and cordova build also gives me a
Thank you, Apple. |
Intentionally or not, this is apparently fixed in the Xcode GM. |
That's great. We'll wait and see if it's permanent, the workaround should still work for now |
@shazron what is the workaround? |
@tommybananas see #314 |
If you are under Sierra you need to add the flag --unsafe-perm=true |
@bjanuario this fixed the issue for me |
@bjanuario Oh yeah!!! It works! |
@bjanuario It installs the package successfully yes, but again when I create a cordova ios build it throws the same error , saying --------------- |
@bjanuario solved my issue.. great Job! |
"sudo npm install -g ios-deploy --unsafe-perm=true" doesn't work for me Is there any other way to get "ios-deploy" installed? |
@mshyrokiy |
@sgalvagno this way make it work,thx |
Hello,
Expected behavior
Install ios-deploy global via NPM
Actual behavior.
Ios-deploy not installed and get the error:
Ld build/Release/ios-deploy normal x86_64
cd /usr/local/lib/node_modules/ios-deploy
export MACOSX_DEPLOYMENT_TARGET=10.8
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -L/usr/local/lib/node_modules/ios-deploy/build/Release -F/usr/local/lib/node_modules/ios-deploy/build/Release -filelist /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/Objects-normal/x86_64/ios-deploy.LinkFileList -mmacosx-version-min=10.8 -Xlinker -object_path_lto -Xlinker /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/Objects-normal/x86_64/ios-deploy_lto.o -fobjc-arc -fobjc-link-runtime -framework MobileDevice -F/System/Library/PrivateFrameworks -framework Foundation -framework CoreFoundation -Xlinker -dependency_info -Xlinker /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/Objects-normal/x86_64/ios-deploy_dependency_info.dat -o /usr/local/lib/node_modules/ios-deploy/build/Release/ios-deploy
ld: framework not found MobileDevice
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/Release/ios-deploy normal x86_64
(1 failure)
npm ERR! code ELIFECYCLE
npm ERR! errno 65
npm ERR! [email protected] preinstall:
./src/scripts/check_reqs.js && xcodebuild
npm ERR! Exit status 65
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Steps to reproduce the problem
I only run the command: npm install -g ios-deploy
System Specs
1. system_profiler SPSoftwareDataType
System Software Overview:
System Version: macOS 10.12.6 (16G29)
Kernel Version: Darwin 16.7.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Secure Virtual Memory: Enabled
System Integrity Protection: Enabled
Time since boot: 2:52
2. ios-deploy -V
3. xcodebuild -version
Xcode 9.0
Build version 9M202q
4. xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
5. gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.34.1)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
6. lldb --version
lldb-900.0.41
Swift-4.0
The text was updated successfully, but these errors were encountered: