Commit 04dc47c
committed
Workaround to link Swift Standard Libraries
The Xcode project generate from Unity may not be able to link Swift
Standard Libaries properly if
1. Some pods include Swift frameworks
2. Podfile sets to link frameworks statically
The workround attempts to fix this by
1. Add a Dummy.swift file to the Xcode project.
2. Enable `CLANG_ENABLE_MODULES` and `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES`
build settings.
3. Change `SWIFT_VERSION` to the value specified in iOS Resolver
settings. Default to "5".
This workaround is turned OFF by default.1 parent 56aaa44 commit 04dc47c
File tree
2 files changed
+3
-4
lines changed- source/IOSResolver/src
2 files changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1048 | 1048 | | |
1049 | 1049 | | |
1050 | 1050 | | |
1051 | | - | |
| 1051 | + | |
1052 | 1052 | | |
1053 | 1053 | | |
1054 | 1054 | | |
| |||
2030 | 2030 | | |
2031 | 2031 | | |
2032 | 2032 | | |
2033 | | - | |
2034 | 2033 | | |
2035 | 2034 | | |
2036 | 2035 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
288 | | - | |
| 287 | + | |
| 288 | + | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| |||
0 commit comments