Skip to content

Getting to work on iOS with 0.27#308

Merged
lelandrichardson merged 1 commit intoreact-native-maps:masterfrom
reenhanced:master
Jul 9, 2016
Merged

Getting to work on iOS with 0.27#308
lelandrichardson merged 1 commit intoreact-native-maps:masterfrom
reenhanced:master

Conversation

@codenamev
Copy link
Contributor

Ok, so my last PR removed the React dependency as it's latest pod source references an outdated version of 0.14. In order to get this completely working I am doing the following in my project's ios/Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

workspace 'my-project.xcworkspace'
project 'my-project.xcodeproj'

target 'my-project' do
  # Depending on how your project is organized, your node_modules directory may be
  # somewhere else; tell CocoaPods where you've installed react-native from npm
  pod 'React', :path => '../node_modules/react-native'
  pod 'React/Core', path: '../node_modules/react-native'
  pod 'React/RCTGeolocation', :path => '../node_modules/react-native'
  pod 'React/RCTImage', :path => '../node_modules/react-native'
  pod 'React/RCTNetwork', :path => '../node_modules/react-native'
  pod 'React/RCTText', :path => '../node_modules/react-native'
  pod 'React/RCTWebSocket', :path => '../node_modules/react-native'
  pod 'react-native-maps'
end

I then add the React.framework to my Linked Libraries, and everything works. I'm not sure if this is the best way to solve this, but thought I'd post this to start a discussion or help people in the interim.

@JAStanton
Copy link

I want to echo these changes, current master is broken while using CocoaPods

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would s.dependency 'React' be sufficient?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a working fork I dropped the dependency version requirement and it works just fine

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codenamev in light of #241, I would drop the version.

@lelandrichardson lelandrichardson merged commit b5c2de5 into react-native-maps:master Jul 9, 2016
@akinsella
Copy link

Hi, in case you get same error, just enable same platform than library podspec:

platform :ios, '8.0'

By default, this line is commented when you init a podfile in ios folder from a react native project. By uncommenting it, everything works and error disappear :)

pinpong pushed a commit to pinpong/react-native-maps that referenced this pull request Feb 28, 2025
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

Successfully merging this pull request may close these issues.

5 participants