leavez / cocoapods-binary

integrate pods in form of prebuilt frameworks conveniently, reducing compile time
MIT License
1.31k stars 206 forks source link

Workspace File Isn't Generated #79

Open rogerluan opened 5 years ago

rogerluan commented 5 years ago

Hello!

plugin 'cocoapods-binary'
platform :ios, '11.0'
use_frameworks!
inhibit_all_warnings!
keep_source_code_for_prebuilt_frameworks!

target 'BinaryDemo' do
  pod 'WeScan', :git => 'https://github.com/zillyinc/WeScan.git', :binary => true
end

The pod install crashes at some point when compiling WeScan, with no logs or whatsoever, and looks like it finishes successfully (because there're no logs). The workspace file isn't generated, though (thus the project doesn't compile).

I thought this was a problem of specifying an alternate git repository to a pod, so I tried with another pod 'SAMKeychain', :git => 'https://github.com/rogerluan/SAMKeychain.git', :binary => true but this one works fine, so I can't tell what the issue is.

It's likely that the same happens for other repositories as well, I just couldn't find any. That pod installs correctly if I comment out the plugin from this Podfile.

tl;dr: when installing WeScan pod specifying that custom repo, it doesn't generate the workspace file.

rogerluan commented 5 years ago

This is what I get when running pod install --verbose

  Preparing
    - Running pre install hooks
      - cocoapods-binary from
      `/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-binary-0.4.4/lib/cocoapods-binary/Main.rb`
🚀  Prebuild frameworks
        Preparing
          - Running pre install hooks
            - cocoapods-binary from
            `/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-binary-0.4.4/lib/cocoapods-binary/Main.rb`

Analyzing dependencies

Inspecting targets to integrate
        Using `ARCHS` setting to build architectures of target `Pods-BinaryDemo`: (``)

Fetching external sources
-> Pre-downloading: `WeScan` from `https://github.com/zillyinc/WeScan.git`
 > Git download
 > Git download
           $ /usr/bin/git clone https://github.com/zillyinc/WeScan.git
           /var/folders/4f/z0d9bxs11zb74t7y8fj4m6nc0000gn/T/d20190614-60889-x6y4dc --template= --single-branch
           --depth 1
           Cloning into '/var/folders/4f/z0d9bxs11zb74t7y8fj4m6nc0000gn/T/d20190614-60889-x6y4dc'...
        $ /usr/bin/git -C /var/folders/4f/z0d9bxs11zb74t7y8fj4m6nc0000gn/T/d20190614-60889-x6y4dc rev-parse HEAD
        07a65c8287a64cd8b7a551b6a6cb91757d1eb260
        > Copying WeScan from
        `/Users/rogerluan/Library/Caches/CocoaPods/Pods/External/WeScan/a4bf30750f94f44cb91515b76f32ed01` to
        `Pods/_Prebuild/WeScan`

Resolving dependencies of `Podfile`

Comparing resolved specification to the sandbox manifest
        A WeScan

Downloading dependencies

-> Installing WeScan (0.9.1)
        - Running pre install hooks

Generating Pods project
        - Creating Pods project
        - Installing files into Pods project
          - Adding source files
          - Adding frameworks
          - Adding libraries
          - Adding resources
          - Linking headers
        - Installing Pod Targets
          - Installing target `WeScan` iOS 10.0
            - Generating module map file at `Pods/_Prebuild/Target Support Files/WeScan/WeScan.modulemap`
            - Generating umbrella header at `Pods/_Prebuild/Target Support Files/WeScan/WeScan-umbrella.h`
            - Generating Info.plist file at `Pods/_Prebuild/Target Support Files/WeScan/WeScan-Info.plist`
            - Generating dummy source at `Pods/_Prebuild/Target Support Files/WeScan/WeScan-dummy.m`
        - Installing Aggregate Targets
          - Installing target `Pods-BinaryDemo` iOS 11.0
            - Generating Info.plist file at `Pods/_Prebuild/Target Support
            Files/Pods-BinaryDemo/Pods-BinaryDemo-Info.plist`
            - Generating module map file at `Pods/_Prebuild/Target Support
            Files/Pods-BinaryDemo/Pods-BinaryDemo.modulemap`
            - Generating umbrella header at `Pods/_Prebuild/Target Support
            Files/Pods-BinaryDemo/Pods-BinaryDemo-umbrella.h`
            - Generating dummy source at `Pods/_Prebuild/Target Support
            Files/Pods-BinaryDemo/Pods-BinaryDemo-dummy.m`
        - Generating deterministic UUIDs
        - Stabilizing target UUIDs
        - Running post install hooks
        - Writing Xcode project file to `Pods/_Prebuild/Pods.xcodeproj`
        Cleaning up sandbox directory
        - Writing Lockfile in `Pods/_Prebuild/Manifest.lock.tmp`
        - Writing Manifest in `Pods/_Prebuild/Manifest.lock`
        - Running post install hooks
          - cocoapods-stats from
          `/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-stats-1.1.0/lib/cocoapods_plugin.rb`

Sending stats
Prebuild frameworks (total 1)
Prebuilding WeScan...
            - WeScan, 0.9.1

It dies here without notice ☝️ even on verbose mode 🤔

X140Yu commented 5 years ago

This plugin doesn't support cocoapods 1.7+ yet

rogerluan commented 5 years ago

That sheds some light ☝️ thanks @X140Yu, I didn't know nor see that documented anywhere 😥

ffs14k commented 5 years ago

I just discover your project and can't try it >_< Have you a plans for further support? @X140Yu @leavez

mikechan1234 commented 2 years ago

I had a similar issue with this just now. To fix it, I checked the path of my command line tools via xcode-select -p and updated it to my Xcode in my applications folder