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
# make all the other dependencies into static libraries by overriding the static_library
41
-
pre_install do |installer|
42
-
installer.pod_targets.each do |pod|
43
-
if!dynamic_frameworks.include?(pod.name)
44
-
puts"Overriding the static_library for #{pod.name}"
45
-
defpod.build_type;
46
-
Pod::Target::BuildType.static_library
47
-
# for static framework -
48
-
# Pod::Target::BuildType.static_framework
49
-
end
50
-
end
51
-
end
52
-
end
53
-
```
54
-
55
-
```ruby
56
-
# 🚨 If you use use_framework! 🚨
57
-
# - Ensure that you have installed at least Cocoapods 1.5.0
58
-
# - Replace use_framework! with use_modular_headers!
59
-
# (see http://blog.cocoapods.org/CocoaPods-1.5.0 for more details)
60
-
61
31
target 'YourAwesomeProject'do
62
32
63
33
# …
@@ -84,7 +54,32 @@ target 'YourAwesomeProject' do
84
54
end
85
55
```
86
56
87
-
_⚠️ If you encounter the error `Invalid RNPermission X. Should be one of: ()`, first check that you link at least one permission handler. If you did, try to cleanup Xcode junk data with `npx react-native-clean-project --remove-iOS-build --remove-iOS-pods`_
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.
0 commit comments