mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-10 15:49:36 +08:00
[CocoaPods] Resolve dependencies at parent level (#1210)
* [CocoaPods] Let it resolve dependencies This is necessary versus using subspecs since CocoaPods needs to be able to resolve the dependencies properly at the parent workspace level based on needed versions. Otherwise, you end up with very opaque linking errors.
This commit is contained in:
committed by
Artem Egorov
parent
14c2530a5f
commit
58be2bca3f
@@ -38,21 +38,9 @@ And that's it! Isn't RNPM awesome? :)
|
||||
pod 'CodePush', :path => '../node_modules/react-native-code-push'
|
||||
```
|
||||
|
||||
CodePush depends on an internal copy of the `SSZipArchive`, `JWT` and `Base64` libraries, so if your project already includes some of them (either directly or via a transitive dependency), then you can install a version of CodePush which excludes it by depending specifically on the needed subspecs:
|
||||
*NOTE: The above path needs to be relative to your app's `Podfile`, so adjust it as necessary.*
|
||||
|
||||
```ruby
|
||||
# `SSZipArchive`, `JWT` and `Base64` already in use
|
||||
pod 'CodePush', :path => '../node_modules/react-native-code-push', :subspecs => ['Core']
|
||||
|
||||
# or for example
|
||||
|
||||
# `SSZipArchive` and `Base64` already in use
|
||||
pod 'CodePush', :path => '../node_modules/react-native-code-push', :subspecs => ['Core', 'JWT']
|
||||
```
|
||||
|
||||
*NOTE: The above paths needs to be relative to your app's `Podfile`, so adjust it as neccessary.*
|
||||
|
||||
*NOTE: `JWT` library should be of version 3.0.x*
|
||||
*NOTE: `JWT` library should be >= version 3.0.x*
|
||||
|
||||
2. Run `pod install`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user