You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+53-55Lines changed: 53 additions & 55 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,31 +103,17 @@ Then update your `Info.plist` with wanted permissions usage descriptions:
103
103
</plist>
104
104
```
105
105
106
-
#### ⚠️ If you encounter the error `Invalid RNPermission X. Should be one of: ()`
106
+
##Workaround for `use_frameworks!` issues
107
107
108
-
1. Check that you linked **at least one** permission handler.
109
-
2. Clean up Xcode stale data with `npx react-native-clean-project --remove-iOS-build --remove-iOS-pods`
110
-
3. If you use `use_frameworks!`, replace it by `use_modular_headers!` - see [this blog post](http://blog.cocoapods.org/CocoaPods-1.5.0) for more details. [Create empty Swift file in XCode](https://stackoverflow.com/questions/52536380/why-linker-link-static-libraries-with-errors-ios/56176956#56176956). Then add ":modular_headers => false" to Pods with build errors:
108
+
If you use `use_frameworks!`, add this at the top of your `Podfile`:
111
109
112
110
```ruby
113
-
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec', :modular_headers => false
114
-
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec', :modular_headers => false
115
-
```
116
-
117
-
4. If you use `use_frameworks!` but **can't** replace it with `use_modular_headers!`, check the following workaround:
118
-
119
-
```ruby
120
-
# Add this code at the top of Podfile right after platform definition.
121
-
# It will make all the dynamic frameworks turning into static libraries.
0 commit comments