Skip to content

Silent stop with no error message (xcode not properly configured) #97

Open
@j796160836

Description

@j796160836

Here is reproduce step:

  1. Rename xcode.app into others (e.g. xcode.app -> xcode10.app).
  2. Run pod install with a project.

Example project:
https://drive.google.com/open?id=1g7Wl0rBAP9n2SupH_ow1mNkBXkjwMf_A

  1. Log message
🚀  Prebuild frameworks
Analyzing dependencies
Downloading dependencies
Installing Kingfisher (5.4.0)
Installing NVActivityIndicatorView (4.8.0)
Installing PromiseKit (6.8.4)
Installing lottie-ios (3.1.1)
Generating Pods project
Sending stats
Prebuild frameworks (total 4)
Prebuilding Kingfisher...

[!] Automatically assigning platform `ios` with version `12.1` on target `BinaryDemo` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

As you see, it will pre-build first module then stopped silently.
It should be print some error message.


Why I found this bug?
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist

$ pod env | egrep 'CocoaPods |Xcode|cocoapods-binary'
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.
See `man xcode-select` for more details.
   CocoaPods : 1.7.5
       Xcode :  ()
cocoapods-binary      : 0.4.4
plugin "cocoapods-binary"

Run sudo xcode-select --switch path/to/Xcode.app and solve the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions