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

fix: Fixed failing to find headers when linked with Pods. #75

Merged
merged 2 commits into from
Apr 14, 2019

Conversation

tido64
Copy link
Member

@tido64 tido64 commented Apr 13, 2019

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:

- pod 'react-native-async-storage', :path => '../node_modules/@react-native-community/async-storage'
+ pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage'

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'
```
@tido64
Copy link
Member Author

tido64 commented Apr 13, 2019

cc @krizzu @stigi @dblazeski

@dblazeski
Copy link

That was quick @tido64

Gave this a test try - it fixes the pods issue. Tried with:

  • Replace
    pod 'react-native-async-storage', :path => '../node_modules/@react-native-community/async-storage
    with
    pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage'
  • yarn add @react-native-community/async-storage@https://github.com/tido64/react-native-async-storage\#tido/fix-pods
  • cd ios && pod update

Build worked.

dblazeski
dblazeski previously approved these changes Apr 13, 2019
Copy link

@dblazeski dblazeski left a 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'

@dluksza
Copy link

dluksza commented Apr 13, 2019

Good work! You should also update docs/Linking.md.

krizzu
krizzu previously approved these changes Apr 13, 2019
Copy link
Member

@krizzu krizzu left a 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.

@tido64 tido64 dismissed stale reviews from krizzu and dblazeski via 5549652 April 13, 2019 17:29
@stigi
Copy link

stigi commented Apr 13, 2019

Thanks @tido64 and everybody, that was quick!

@krizzu krizzu merged commit 5ab6602 into react-native-async-storage:master Apr 14, 2019
@tido64 tido64 deleted the tido/fix-pods branch April 14, 2019 09:39
krizzu pushed a commit that referenced this pull request Apr 14, 2019
## [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))
@krizzu
Copy link
Member

krizzu commented Apr 14, 2019

🎉 This PR is included in version 1.3.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Corey-Peyton added a commit to Corey-Peyton/async-storage that referenced this pull request Jul 14, 2021
DenisSolution pushed a commit to DenisSolution/React-native-async-storage that referenced this pull request Aug 27, 2022
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.

6 participants