Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

ios/EncryptedStorage.xcodeproj (stray file) causes build failure in version 4.0.3 #114

Open
gearnshaw opened this issue Mar 27, 2023 · 0 comments

Comments

@gearnshaw
Copy link

gearnshaw commented Mar 27, 2023

After adding react-native-encrypted-storage to our project, our iOS build started failing on our CI/CD (Code Magic) with a provisioning issue. Note it didn't fail for us when we built / archived a release locally, so it appears this only impacts some build setups.

After investigation, we isolated the issue to being caused by a malformed file, ios/EncryptedStorage.xcodeproj. Upon inspection it contains a project.xcworkspace and an xcuserdata file (yanick.xcuserdata - doesn't obviously match any of the contributer github handles). It is malformed because it doesn't contain a project.pbxproj file.

This file ISN'T present in the repo on the master branch, and it ISN'T present in the 4.0.3 zip file. I'm not familiar enough with node packages to know where this might be coming from, or how to fix.

We have worked around by downgrading to 4.0.2

To reproduce:

  1. Add react-native-encrypted-storage": "4.0.3" to a project's package.json and install modules. The file is present at /node_modules/react-native-encrypted-storage/ios/
  2. Change the reference to react-native-encrypted-storage": "4.0.2" and install modules. The file is NOT present.
  3. Change the reference to https://github.com/emeraldsanto/react-native-encrypted-storage and install modules. The file is NOT present.
  4. View the contents of the 4.0.3 version zip file at https://github.com/emeraldsanto/react-native-encrypted-storage/releases/tag/4.0.3. The file is NOT present.

Screenshot 2023-03-27 at 11 57 54

Screenshot 2023-03-27 at 12 24 46 copy

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

No branches or pull requests

1 participant