Browse Source

Update README.md

Mathieu Acthernoene 5 years ago
parent
commit
e8a2309bd4
No account linked to committer's email address
1 changed files with 27 additions and 27 deletions
  1. 27
    27
      README.md

+ 27
- 27
README.md View File

@@ -54,33 +54,6 @@ target 'YourAwesomeProject' do
54 54
 end
55 55
 ```
56 56
 
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
-
84 57
 Then update your `Info.plist` with wanted permissions usage descriptions:
85 58
 
86 59
 ```xml
@@ -130,6 +103,33 @@ Then update your `Info.plist` with wanted permissions usage descriptions:
130 103
 </plist>
131 104
 ```
132 105
 
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
+
133 133
 ### Android
134 134
 
135 135
 Add all wanted permissions to your app `android/app/src/main/AndroidManifest.xml` file: