Skip to content

ios-deploy not building on macOS 10.13 + Xcode 9 #11875

Closed

Description

@cbracken

Steps to Reproduce

This is a Flutter tracking bug for ios-control/ios-deploy#308.

Follow the instructions to install ios-deploy emitted by flutter doctor on a Mac with the 10.13 and Xcode 9 betas installed:

brew install ios-deploy

Logs

$ brew install ios-deploy
==> Downloading https://github.com/phonegap/ios-deploy/archive/1.9.1.tar.gz
Already downloaded: /Users/flutter/Library/Caches/Homebrew/ios-deploy-1.9.1.tar.gz
==> xcodebuild -configuration Release SYMROOT=build
Last 15 lines from /Users/flutter/Library/Logs/Homebrew/ios-deploy/01.xcodebuild:
    /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/_n/3pbr_8sx1l56cstkhs54vl1w0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.8 -g -fvisibility=hidden -Wno-sign-conversion -Winfinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -iquote /tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/build/ios-deploy.build/Release/ios-deploy.build/ios-deploy-generated-files.hmap -I/tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/build/ios-deploy.build/Release/ios-deploy.build/ios-deploy-own-target-headers.hmap -I/tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/build/ios-deploy.build/Release/ios-deploy.build/ios-deploy-all-target-headers.hmap -iquote /tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/build/ios-deploy.build/Release/ios-deploy.build/ios-deploy-project-headers.hmap -I/tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/build/Release/include -I/tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/build/ios-deploy.build/Release/ios-deploy.build/DerivedSources/x86_64 -I/tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/build/ios-deploy.build/Release/ios-deploy.build/DerivedSources -F/tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/build/Release -fno-objc-arc -MMD -MT dependencies -MF /tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/build/ios-deploy.build/Release/ios-deploy.build/Objects-normal/x86_64/ios-deploy.d --serialize-diagnostics /tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/build/ios-deploy.build/Release/ios-deploy.build/Objects-normal/x86_64/ios-deploy.dia -c /tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/src/ios-deploy/ios-deploy.m -o /tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/build/ios-deploy.build/Release/ios-deploy.build/Objects-normal/x86_64/ios-deploy.o

Ld build/Release/ios-deploy normal x86_64
    cd /tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1
    export MACOSX_DEPLOYMENT_TARGET=10.8
    /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -L/tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/build/Release -F/tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/build/Release -filelist /tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/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 /tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/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 /tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/build/ios-deploy.build/Release/ios-deploy.build/Objects-normal/x86_64/ios-deploy_dependency_info.dat -o /tmp/ios-deploy-20170831-12767-f07oxn/ios-deploy-1.9.1/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)

Do not report this issue to Homebrew/brew or Homebrew/core!


Error: You are using macOS 10.13.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.

Net effect is that on the macOS 10.13 beta, developers will be able to build and install their apps, but not launch them on device. This will prevent edit-refresh development with hot reload.

Flutter Doctor

$ flutter doctor
[✓] Flutter (on Mac OS X 10.13 17A358a, locale en-AU, channel master)
    • Flutter at /Users/flutter/src/flutter/flutter
    • Framework revision 145f3894e5 (81 minutes ago), 2017-08-31 09:55:52 -0700
    • Engine revision f9e00a7c72
    • Tools Dart version 1.25.0-dev.11.0

[✓] Android toolchain - develop for Android devices (Android SDK 26.0.1)
    • Android SDK at /Users/flutter/Library/Android/sdk
    • Platform android-26, build-tools 26.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[-] iOS toolchain - develop for iOS devices (Xcode 9.0)
    • Xcode at /Applications/Xcode-beta.app/Contents/Developer
    • Xcode 9.0, Build version 9M214v
    ✗ Your Mac needs to enabled for developer mode before using Xcode for the first time.
      Run 'sudo DevToolsSecurity -enable' or open Xcode
    ✗ ios-deploy not installed. To install:
        brew install ios-deploy
    • CocoaPods version 1.3.1

[✓] Android Studio (version 2.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] Connected devices
    • None

Activity

  1. added
    tool
    platform-macos
    platform-ios
    on Aug 31, 2017
  2. cbracken commented on Sep 2, 2017

    @cbracken
    MemberAuthor

    Sent a workaround PR upstream: ios-control/ios-deploy#314.

  3. cbracken commented on Sep 5, 2017

    @cbracken
    MemberAuthor

    Workaround is merged. Homebrew/homebrew-core#17660 updates the homebrew formula to the updated version.

  4. cbracken commented on Sep 5, 2017

    @cbracken
    MemberAuthor

    ios-deploy is updated to 1.9.2 now on homebrew. All known iOS 11, Xcode 9, macOS 10.13 issues are resolved.

  5. woowalker commented on Mar 26, 2018

    @woowalker

    @cbracken
    how about this ?

    when i run brew install ideviceinstaller ios-deploy cocoapods

    i got this error:

    imageld

    and i attempt to run: sudo npm install -g ios-deploy --unsafe-perm=true
    and now, ios-deploy -V show 1.9.2, and still got this error

  6. github-actions commented on Sep 3, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  7. locked as resolved and limited conversation to collaborators on Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform-iosplatform-macostool

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions