Skip to content

Commit e8a2309

Browse files
authored
Update README.md
1 parent e4a36da commit e8a2309

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -54,33 +54,6 @@ target 'YourAwesomeProject' do
5454
end
5555
```
5656

57-
#### ⚠️ If you encounter the error `Invalid RNPermission X. Should be one of: ()`
58-
59-
1. Check that you linked **at least one** permission handler.
60-
2. Clean up Xcode stale data with `npx react-native-clean-project --remove-iOS-build --remove-iOS-pods`
61-
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
62-
4. If you use `use_frameworks!` but **can't** replace it with `use_modular_headers!`, check the following workaround:
63-
64-
```ruby
65-
# Add this code at the top of Podfile right after platform definition.
66-
# It will make all the dynamic frameworks turning into static libraries.
67-
68-
use_frameworks!
69-
70-
$dynamic_frameworks = ['RxCocoa', 'RxSwift', 'WhatEverSDKName']
71-
72-
pre_install do |installer|
73-
installer.pod_targets.each do |pod|
74-
if !$dynamic_frameworks.include?(pod.name)
75-
puts "Overriding the static_framework? method for #{pod.name}"
76-
def pod.build_type;
77-
Pod::Target::BuildType.static_library
78-
end
79-
end
80-
end
81-
end
82-
```
83-
8457
Then update your `Info.plist` with wanted permissions usage descriptions:
8558

8659
```xml
@@ -130,6 +103,33 @@ Then update your `Info.plist` with wanted permissions usage descriptions:
130103
</plist>
131104
```
132105

106+
#### ⚠️ If you encounter the error `Invalid RNPermission X. Should be one of: ()`
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
111+
4. If you use `use_frameworks!` but **can't** replace it with `use_modular_headers!`, check the following workaround:
112+
113+
```ruby
114+
# Add this code at the top of Podfile right after platform definition.
115+
# It will make all the dynamic frameworks turning into static libraries.
116+
117+
use_frameworks!
118+
119+
$dynamic_frameworks = ['RxCocoa', 'RxSwift', 'WhatEverSDKName']
120+
121+
pre_install do |installer|
122+
installer.pod_targets.each do |pod|
123+
if !$dynamic_frameworks.include?(pod.name)
124+
puts "Overriding the static_framework? method for #{pod.name}"
125+
def pod.build_type;
126+
Pod::Target::BuildType.static_library
127+
end
128+
end
129+
end
130+
end
131+
```
132+
133133
### Android
134134

135135
Add all wanted permissions to your app `android/app/src/main/AndroidManifest.xml` file:

0 commit comments

Comments
 (0)