-
Notifications
You must be signed in to change notification settings - Fork 467
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
fix: Fixed failing to find headers when linked with Pods. #75
fix: Fixed failing to find headers when linked with Pods. #75
Conversation
If you've linked using react-native link, you will have to rerun the command. If you've linked manually, find your Podfile, and make the following changes: ```diff - pod 'react-native-async-storage', :path => '../node_modules/@react-native-community/async-storage' + pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage' ```
That was quick @tido64 Gave this a test try - it fixes the pods issue. Tried with:
Build worked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iOS building with pods works after podfile update to
pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage'
Good work! You should also update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic, thanks for taking care of it 🙏
I'd update the docs and merge it.
thanks.
Thanks @tido64 and everybody, that was quick! |
## [1.3.2](v1.3.1...v1.3.2) (2019-04-14) ### Bug Fixes * failing to find headers when linked with Pods. ([#75](#75)) ([5ab6602](5ab6602))
🎉 This PR is included in version 1.3.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [1.3.2](react-native-async-storage/async-storage@v1.3.1...v1.3.2) (2019-04-14) ### Bug Fixes * failing to find headers when linked with Pods. ([#75](react-native-async-storage/async-storage#75)) ([5ab6602](react-native-async-storage/async-storage@5ab6602))
## [1.3.2](react-native-async-storage/async-storage@v1.3.1...v1.3.2) (2019-04-14) ### Bug Fixes * failing to find headers when linked with Pods. ([#75](react-native-async-storage/async-storage#75)) ([5ab6602](react-native-async-storage/async-storage@5ab6602))
Summary:
Multiple people have reported that RNCAsyncStorage fails to build after #35. See #35 (comment), #73, and #74.
After a little discussion, we agreed to rename the
.podspec
and the name of the Pod to be more in line with Apple's naming guidelines and the rest of the community. Unfortunately, this means that the next upgrade will break.I got a little impatient knowing that I broke the latest release so I went ahead and implemented the fix. Sorry if you've already started looking at this.
Test Plan:
I used https://github.com/timmywil/react-native-async-storage-1.3.1, kindly provided by @timmywil, for testing.
Migration Plan:
Even though
react-native link
will be able to link the new.podspec
, it won't clean up existing entries. Please find your Podfile, and make the following changes: