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
{{ message }}
This repository was archived by the owner on May 6, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+43-7Lines changed: 43 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,19 @@ Then follow the instructions for each platform to link react-native-spokestack t
31
31
<details>
32
32
<summary>iOS details</summary>
33
33
34
-
First, set your iOS deployment target in XCode to 13.0.
34
+
### Set deployment target
35
+
36
+
First, open XCode and go to Project -> Info to set the iOS Deployment target to 13.0 or higher.
37
+
38
+
Also, set deployment to 13.0 under Target -> General -> Deployment Info.
39
+
40
+
### Remove invalid library search path
41
+
42
+
When Flipper was introduced to React Native, some library search paths were set for Swift. There has been a longstanding issue with the default search paths in React Native projects because a search path was added for swift 5.0 which prevented any other React Native libraries from using APIs only available in Swift 5.2 or later. Spokestack-iOS, a dependency of react-native-spokestack makes use of these APIs and XCode will fail to build.
43
+
44
+
Fortunately, the fix is fairly simple. Go to your target -> Build Settings and search for "Library Search Paths".
45
+
46
+
Remove `"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\""` from the list.
35
47
36
48
### Edit Podfile
37
49
@@ -51,17 +63,40 @@ target 'SpokestackExample' do
51
63
#...
52
64
```
53
65
54
-
For now, `use_frameworks!` does not work with Flipper, so we also need to disable Flipper. Remove any Flipper-related lines in your Podfile. In React Native 0.63.2, they look like this:
66
+
For now, `use_frameworks!` does not work with Flipper, so we also need to disable Flipper. Remove any Flipper-related lines in your Podfile. In React Native 0.63.2+, they look like this:
55
67
56
68
```ruby
57
69
# X Remove or comment out these lines X
58
-
use_flipper!
59
-
post_install do |installer|
60
-
flipper_post_install(installer)
61
-
end
70
+
#use_flipper!
71
+
#post_install do |installer|
72
+
# flipper_post_install(installer)
73
+
#end
62
74
# XX
63
75
```
64
76
77
+
#### Bug in React Native 0.64.0 (should be fixed in 0.64.1)
78
+
79
+
React Native 0.64.0 broke any projects using `use_frameworks!` in their Podfiles.
80
+
81
+
For more info on this bug, see https://github.com/facebook/react-native/issues/31149.
82
+
83
+
To workaround this issue, add the following to your Podfile:
84
+
85
+
```ruby
86
+
# Moves 'Generate Specs' build_phase to be first for FBReactNativeSpec
87
+
post_install do |installer|
88
+
installer.pods_project.targets.each do |target|
89
+
if (target.name&.eql?('FBReactNativeSpec'))
90
+
target.build_phases.each do |build_phase|
91
+
if (build_phase.respond_to?(:name) && build_phase.name.eql?('[CP-User] Generate Specs'))
92
+
target.build_phases.move(build_phase, 0)
93
+
end
94
+
end
95
+
end
96
+
end
97
+
end
98
+
```
99
+
65
100
Remove your existing Podfile.lock and Pods folder to ensure no conflicts, then install the pods:
66
101
67
102
```sh
@@ -134,12 +169,13 @@ See our [ASR documentation](https://www.spokestack.io/docs/concepts/asr) for mor
0 commit comments