Skip to content
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

Pod installed failed when Run the sample code on iOS or on my own project. #30

Closed
urmyfaith opened this issue Jun 12, 2018 · 12 comments
Closed
Labels

Comments

@urmyfaith
Copy link

Pod installed failed when Run the sample code on iOS or on my own project.

RT.

➜  Sample pod install
Analyzing dependencies
[!] A dependency with an external source may not specify version requirements (Yoga).

Build On macOS 10.13.3 (17D102),

➜  Sample swift --version
Apple Swift version 4.1.2 (swiftlang-902.0.54 clang-902.0.39.2)
Target: x86_64-apple-darwin17.4.0 
@priteshrnandgaonkar
Copy link
Contributor

@urmyfaith Running pod install from iOS/Sample works for me. Can you try upgrading your cocoapod?

screen shot 2018-06-12 at 11 37 03 am

@urmyfaith
Copy link
Author

I have upgraded cocoapods.

➜  Sample pod --version
1.5.3
➜  Sample pod install
Analyzing dependencies
Pre-downloading: `ComponentKit` from `https://github.com/facebook/ComponentKit.git`, commit `73acd7995610ad6b009a9a74b8290a54dab7c716`
Fetching podspec for `DoubleConversion` from `../third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `Folly` from `../third-party-podspecs/Folly.podspec`
Pre-downloading: `PeerTalk` from `https://github.com/rsms/PeerTalk.git`, commit `588303b43efa5082d654b6f75d1b84a6ba4b5b9e`
Pre-downloading: `RSocket` from `https://github.com/rsocket/rsocket-cpp.git`, commit `11491fb22aaaf29b2702a1723561db51b314dd0f`
[!] Unable to find a specification for 'RSocket'.
➜  Sample pod install
Analyzing dependencies
Pre-downloading: `ComponentKit` from `https://github.com/facebook/ComponentKit.git`, commit `73acd7995610ad6b009a9a74b8290a54dab7c716`
Fetching podspec for `DoubleConversion` from `../third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `Folly` from `../third-party-podspecs/Folly.podspec`
Pre-downloading: `PeerTalk` from `https://github.com/rsms/PeerTalk.git`, commit `588303b43efa5082d654b6f75d1b84a6ba4b5b9e`
Pre-downloading: `RSocket` from `https://github.com/rsocket/rsocket-cpp.git`, commit `11491fb22aaaf29b2702a1723561db51b314dd0f`
[!] Unable to find a specification for 'RSocket'.

@padupuy
Copy link

padupuy commented Jun 12, 2018

@urmyfaith The docs are not reflecting the repo requirements

Here is better version which comes from the repo examples

  pod 'EasyWSClient', :podspec => 'https://raw.githubusercontent.com/facebook/Sonar/master/iOS/third-party-podspecs/EasyWSClient.podspec'
  pod 'PeerTalk', :git => 'https://github.com/rsms/peertalk'
  pod 'ComponentKit', :podspec => 'https://raw.githubusercontent.com/facebook/Sonar/master/iOS/third-party-podspecs/ComponentKit.podspec'
  pod 'Sonar', :podspec => 'https://raw.githubusercontent.com/facebook/Sonar/master/xplat/Sonar/SonarKitCPP.podspec'
  pod 'SonarKit', :podspec => 'https://raw.githubusercontent.com/facebook/Sonar/master/iOS/SonarKit.podspec'
  pod 'SonarKit/SonarKitLayoutComponentKitSupport', :podspec => 'https://raw.githubusercontent.com/facebook/Sonar/master/iOS/SonarKit.podspec'
  pod 'SonarKit/SKIOSNetworkPlugin', :podspec => 'https://raw.githubusercontent.com/facebook/Sonar/master/iOS/SonarKit.podspec'

  pod 'DoubleConversion', :podspec => 'https://raw.githubusercontent.com/facebook/Sonar/master/iOS/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => 'https://raw.githubusercontent.com/facebook/Sonar/master/iOS/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => 'https://raw.githubusercontent.com/facebook/Sonar/master/iOS/third-party-podspecs/Folly.podspec'
  pod 'Yoga','~>1.8.1', :modular_headers => true

@priteshrnandgaonkar Could you please update the docs ?

@padupuy
Copy link

padupuy commented Jun 12, 2018

Still failing during pod install

Here is my logs

pod install --verbose
  Preparing

Analyzing dependencies

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

Finding Podfile changes
  A ComponentKit
  A EasyWSClient
  A PeerTalk
  A Sonar
  A SonarKit
  A Yoga
  R yoga
  M DoubleConversion
  M Folly
  M glog
  - Firebase
  - Interactable
  - React
  - react-native-maps

Fetching external sources
-> Fetching podspec for `ComponentKit` from `https://raw.githubusercontent.com/facebook/Sonar/master/iOS/third-party-podspecs/ComponentKit.podspec`
-> Fetching podspec for `DoubleConversion` from `https://raw.githubusercontent.com/facebook/Sonar/master/iOS/third-party-podspecs/DoubleConversion.podspec`
-> Fetching podspec for `EasyWSClient` from `https://raw.githubusercontent.com/facebook/Sonar/master/iOS/third-party-podspecs/EasyWSClient.podspec`
-> Fetching podspec for `Folly` from `https://raw.githubusercontent.com/facebook/Sonar/master/iOS/third-party-podspecs/Folly.podspec`
-> Fetching podspec for `Interactable` from `../node_modules/react-native-interactable`
-> Pre-downloading: `PeerTalk` from `https://github.com/rsms/peertalk`
 > Git download
 > Git download
     $ /usr/bin/git clone https://github.com/rsms/peertalk /var/folders/z0/ncp72vmj72q_4pmjhzm59kdr0000gn/T/d20180612-56675-qh1jxk --template= --single-branch --depth 1
     Cloning into '/var/folders/z0/ncp72vmj72q_4pmjhzm59kdr0000gn/T/d20180612-56675-qh1jxk'...
  $ /usr/bin/git -C /var/folders/z0/ncp72vmj72q_4pmjhzm59kdr0000gn/T/d20180612-56675-qh1jxk rev-parse HEAD
  588303b43efa5082d654b6f75d1b84a6ba4b5b9e
  > Copying PeerTalk from `/Users/padupuy/Library/Caches/CocoaPods/Pods/External/PeerTalk/3cc1488ccfac5531686d44caef0ffbfe` to `Pods/PeerTalk`
-> Fetching podspec for `React` from `../node_modules/react-native`
-> Fetching podspec for `Sonar` from `https://raw.githubusercontent.com/facebook/Sonar/master/xplat/Sonar/SonarKitCPP.podspec`
-> Fetching podspec for `SonarKit` from `https://raw.githubusercontent.com/facebook/Sonar/master/iOS/SonarKit.podspec`
-> Fetching podspec for `glog` from `https://raw.githubusercontent.com/facebook/Sonar/master/iOS/third-party-podspecs/glog.podspec`
[!] Failed to load 'glog' podspec:
[!] Invalid `glog.podspec` file: No such file or directory @ rb_sysopen - ../scripts/ios-configure-glog.sh.

 #  from /Users/padupuy/adfab/ghd/ws/ghdapp/ios/glog.podspec:8
 #  -------------------------------------------
 #    spec.authors = 'Google'
 >    spec.prepare_command = File.read("../scripts/ios-configure-glog.sh")
 #    spec.source = { :git => 'https://github.com/google/glog.git',
 #  -------------------------------------------


/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/external_sources/abstract_external_source.rb:170:in `rescue in store_podspec'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/external_sources/abstract_external_source.rb:156:in `store_podspec'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/external_sources/podspec_source.rb:19:in `block (2 levels) in fetch'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/open-uri.rb:155:in `open_uri'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/open-uri.rb:717:in `open'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/open-uri.rb:35:in `open'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/external_sources/podspec_source.rb:19:in `block in fetch'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:85:in `titled_section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/external_sources/podspec_source.rb:11:in `fetch'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:697:in `fetch_external_source'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:673:in `block (2 levels) in fetch_external_sources'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:672:in `each'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:672:in `block in fetch_external_sources'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:671:in `fetch_external_sources'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:85:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:243:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:154:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:153:in `resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:116:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command/install.rb:41:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'

@urmyfaith
Copy link
Author

Instead of download the zip of this repo, I cloned to my mac ,the sample code works using commit

4fbe638

Many thanks. @priteshrnandgaonkar @padupuy

@urmyfaith
Copy link
Author

Am I need to update open ssl ?

In file included from ~/Sonar/iOS/Sample/Pods/Sonar/xplat/Sonar/CertificateUtils.cpp:8:

~/Sonar/iOS/Sample/Pods/Sonar/xplat/Sonar/CertificateUtils.h:11:10: fatal error: 'openssl/pem.h' file not found

#include <openssl/pem.h>
         ^~~~~~~~~~~~~~~
1 error generated.

@priteshrnandgaonkar
Copy link
Contributor

This commit is the culprit. Fix for this is comming

@priteshrnandgaonkar
Copy link
Contributor

@urmyfaith Is this error encountered while running pod install

@urmyfaith
Copy link
Author

@priteshrnandgaonkar no, accured when building for my iPhone.

@priteshrnandgaonkar
Copy link
Contributor

Currently we support just simulators for iOS platform. Support for iOS devices will come soon.

@urmyfaith
Copy link
Author

@priteshrnandgaonkar thanks,Maybe I seems didn’t noticed that in the readme.

@priteshrnandgaonkar
Copy link
Contributor

priteshrnandgaonkar commented Jun 12, 2018

@urmyfaith We will update it in the documentation. Thanks for raising the issue. Closing the issue for now. Feel free to reopen if the issue is not solved.

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

No branches or pull requests

4 participants