leavez / cocoapods-binary

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

can not find .bundle in Pods/_Prebuild/GeneratedFrameworks/XXX/XXX.framework/ #95

Open JasonMR7 opened 4 years ago

JasonMR7 commented 4 years ago

Report

What did you do?

Run pod install

What did you expect to happen?

Install all pod dependencies correctly.

What happened instead?

an error occurred when pod install: Errno::ENOENT - No such file or directory @ realpath_rec - /Users/prontera/Desktop/SwiftTest/Pods/_Prebuild/GeneratedFrameworks/XXX/XXX.framework/XXX.bundle

CocoaPods Environment

Using Xcode 10.3 CocoaPods 1.7.5

Project that demonstrates the issue

My Podfile is like this:

platform :ios, '10.0'
gem 'cocoapods', '1.7.5'
plugin 'cocoapods-binary'
plugin 'cocoapods-static-swift-framework'

all_binary!
keep_source_code_for_prebuilt_frameworks!
inhibit_all_warnings!

target 'SwiftTest' do
use_frameworks!
pod 'SDCAlertView'

end
guilhermekrz commented 4 years ago

I had the same issue with the Firebase/InAppMessagingDisplay pod. To temporarily solve it, I had to disable binary for this pod pod 'Firebase/InAppMessagingDisplay', :binary => false.

JasonMR7 commented 4 years ago

I had the same issue with the Firebase/InAppMessagingDisplay pod. To temporarily solve it, I had to disable binary for this pod pod 'Firebase/InAppMessagingDisplay', :binary => false.

yeap, every pod with bundle has to set :binary => false in Podfile now (static framework)

isnine commented 4 years ago

I had the same issue..

moizilla commented 4 years ago

I had the same issue. Workaround was to copy the .bundle file on the DerivedData folder into the _Prebuild folder and rerun pod install again. Wondering if there's a way to automate this.

sueLan commented 4 years ago

I encountered this issue too. In new 1.7.1 cocoapods, xxx.bundle in the A.static framework under GeneratedFrameworks folder. there is no After downgrading CocoaPods to 1.6.1, the xxx.bundle was generated again.

https://github.com/leavez/cocoapods-binary/blob/04c02f8d1aeabf052c776fafa5a07bfa9ad29657/lib/cocoapods-binary/Integration.rb#L212 If deleting this code, in Cocoapods 1.6.1 , with resource_bundles in A.podspec,

If deleting this code, in Cocoapods 1.9.3 , with resource_bundles in A.podspec,