8000 Getting build error trying to use a static framework which contains dependencies transitively · Issue #7140 · CocoaPods/CocoaPods · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Getting build error trying to use a static framework which contains dependencies transitively #7140

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

Closed
1 task done
farkasseb opened this issue Oct 15, 2017 · 5 comments
Closed
1 task done
Assignees
Milestone

Comments

@farkasseb
Copy link

Report

What did you do?

bundle update
bundle exec pod install
open CocoaPodsStaticFramworkBetaTest.xcworkspace
⌘+B

What did you expect to happen?

Build Suceeded

What happened instead?

Build Failed

CocoaPods Environment

bundle exec pod env | pbcopy

Stack

   CocoaPods : 1.4.0.beta.1
        Ruby : ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16]
    RubyGems : 2.6.13
        Host : Mac OS X 10.13.1 (17B25c)
       Xcode : 9.1 (9B37)
         Git : git version 2.14.2
Ruby lib dir : /usr/local/Cellar/ruby/2.4.2/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ f2c58978f124dded5ed4431c62d55aa827a4ec7f

Installation Source

Executable Path: /usr/local/lib/ruby/gems/2.4.0/bin/pod

Plugins

cocoapods-deintegrate : 1.0.1
cocoapods-keys        : 2.0.0
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.3.0
cocoapods-try         : 1.1.0

Podfile

platform :ios, '9.0'
use_frameworks!

target 'CocoaPodsStaticFramworkBetaTest' do
  pod 'TransitiveExample', :git => 'https://github.com/fandor92/transitive-example.git', :tag => 'v0.1'
end

Project that demonstrates the issue

https://github.com/farkasseb/CocoaPodsStaticFramworkBetaTest

We are trying to use the latest CocoaPods (beta from source). Could you please point out what are we doing wrong with this dependency setup?

@dnkoutso
Copy link
Contributor

has probably been fixed by #7135 but I'll @paulb777 confirm and close if true.

@farkasseb
Copy link
Author

#7135 seems to be merged and we are experimenting with CocoaPods masters branch, so I believe this issue is still valid.

@farkasseb
Copy link
Author

This is the output of the bundle update command showing which version we are using.

Fetching https://github.com/CocoaPods/CocoaPods.git
Fetching https://github.com/CocoaPods/Core.git
Fetching https://github.com/CocoaPods/Xcodeproj.git
Fetching https://github.com/orta/cocoapods-keys.git
Fetching gem metadata from https://rubygems.org/.............
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Using CFPropertyList 2.3.5
Using ZenTest 4.11.1
Using i18n 0.8.6
Using minitest 5.10.3
Using thread_safe 0.3.6
Using json 1.8.6
Using mini_portile2 2.3.0
Using bundler 1.15.4
Using claide 1.0.2
Using fuzzy_match 2.0.4
Using nap 1.1.0
Using cocoapods-deintegrate 1.0.1
Using cocoapods-downloader 1.1.3
Using cocoapods-search 1.0.0
Using cocoapods-stats 1.0.0
Using netrc 0.11.0
Using cocoapods-try 1.1.0
Using colored2 3.1.2
Using escape 0.0.4
Using fourflusher 2.0.1
Using gh_inspector 1.0.3
Using molinillo 0.6.3
Using ruby-macho 1.1.0
Using nanaimo 0.2.3
Using dotenv 2.2.1
Using highline 1.7.8
Using multipart-post 2.0.0
Using net-ssh 4.2.0
Using plist 3.1.0
Using rouge 2.0.7
Using rubyzip 1.2.1
Using sbconstants 1.2.0
Using security 0.1.3
Using unicode-display_width 1.3.0
Using RubyInline 3.12.4
Using tzinfo 1.2.3
Using nokogiri 1.8.1
Using cocoapods-plugins 1.0.0
Using cocoapods-trunk 1.3.0
Using xcodeproj 1.5.2 from https://github.com/CocoaPods/Xcodeproj.git (at master@0760750)
Using commander 4.4.3
Using faraday 0.13.1
Using net-sftp 2.1.2
Using xcpretty 0.2.8
Using terminal-table 1.8.0
Using osx_keychain 1.0.1
Using activesupport 4.2.10
Using aws-sdk-v1 1.67.0
Using faraday_middleware 0.12.2
Using cocoapods-keys 2.0.0 from https://github.com/orta/cocoapods-keys.git (at master@83b0c3f)
Using cocoapods-core 1.4.0.beta.1 from https://github.com/CocoaPods/Core.git (at master@6db1586)
Using aws-sdk 1.67.0
Using cocoapods 1.4.0.beta.1 from https://github.com/CocoaPods/CocoaPods.git (at master@1b834cf)
Using shenzhen 0.14.3
Bundle updated!

1b834cf seems to be the last commit on the master branch.

@paulb777 paulb777 self-assigned this Oct 17, 2017
@paulb777
Copy link
Member

Thanks for creating the example.

I've tracked down the issue to the need to generate a .swiftmodule directory for the static framework Modules directory. The test will pass if I restore the .swiftmodule directory from a dynamic library build to the static library build.

I'll investigate solutions tomorrow.

@farkasseb
Copy link
Author

We verified that the issue is fixed 🎉! Thank you very much for you fast help. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0