|
1 | | -#if UNITY_IOS |
| 1 | +#if UNITY_IOS && UNITY_EDITOR |
2 | 2 | using System; |
3 | 3 | using System.Collections.Generic; |
4 | 4 | using System.Diagnostics; |
@@ -152,11 +152,11 @@ public static void PrepareProject(string buildPath) |
152 | 152 | project.AddBuildProperty(target, "LIBRARY_SEARCH_PATHS", "$(SRCROOT)/Libraries"); |
153 | 153 | project.AddBuildProperty(target, "LIBRARY_SEARCH_PATHS", "$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)"); |
154 | 154 |
|
155 | | - #if UNITY_2019_3_OR_NEWER |
| 155 | +#if UNITY_2019_3_OR_NEWER |
156 | 156 | project.AddBuildProperty(target, "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES", "NO"); |
157 | | - #else |
| 157 | +#else |
158 | 158 | project.AddBuildProperty(target, "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES", "YES"); |
159 | | - #endif |
| 159 | +#endif |
160 | 160 |
|
161 | 161 | project.AddBuildProperty(target, "LD_RUNPATH_SEARCH_PATHS", "@executable_path/Frameworks"); |
162 | 162 | project.SetBuildProperty(target, "SWIFT_VERSION", "5.5"); |
@@ -301,11 +301,11 @@ private static string GetXcodeVersion() |
301 | 301 |
|
302 | 302 | private static string GetTargetNameOfProject(PBXProject project) |
303 | 303 | { |
304 | | - #if UNITY_2019_3_OR_NEWER |
| 304 | +#if UNITY_2019_3_OR_NEWER |
305 | 305 | return project.GetUnityMainTargetGuid(); |
306 | | - #else |
| 306 | +#else |
307 | 307 | return project.TargetGuidByName("Unity-iPhone"); |
308 | | - #endif |
| 308 | +#endif |
309 | 309 | } |
310 | 310 |
|
311 | 311 | private static int CompareVersions(string v1, string v2) |
|
0 commit comments