Skip to content

Commit a45b041

Browse files
Update Unity Version + Swift Version
Updated to Unity 2019.2.0f1 and Swift 5
1 parent ed954f8 commit a45b041

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Example/Assets/UnitySwift/Editor/PostProcessor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using UnityEngine;
1+
#if UNITY_IOS
2+
using UnityEngine;
23
using UnityEditor;
34
using UnityEditor.Callbacks;
45
using UnityEditor.iOS.Xcode;
@@ -12,7 +13,6 @@ namespace UnitySwift {
1213
public static class PostProcessor {
1314
[PostProcessBuild]
1415
public static void OnPostProcessBuild(BuildTarget buildTarget, string buildPath) {
15-
#if UNITY_IOS
1616
if(buildTarget == BuildTarget.iOS) {
1717
// So PBXProject.GetPBXProjectPath returns wrong path, we need to construct path by ourselves instead
1818
// var projPath = PBXProject.GetPBXProjectPath(buildPath);
@@ -31,7 +31,7 @@ public static void OnPostProcessBuild(BuildTarget buildTarget, string buildPath)
3131

3232
proj.WriteToFile(projPath);
3333
}
34-
#endif
3534
}
3635
}
3736
}
37+
#endif

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Example : NSObject {
5050
import Foundation
5151

5252
class Example : NSObject {
53-
static func swiftMethod(_ message: String) {
53+
@objc static func swiftMethod(_ message: String) {
5454
print("\(#function) is called with message: \(message)")
5555
}
5656
}
@@ -106,9 +106,9 @@ The file names of *UnitySwift-Bridging-Header.h* and *unityswift-Swift.h* are de
106106

107107
## Requirements
108108

109-
iOS 7 or later
109+
iOS 9 or later
110110

111111
## Compatibility
112112

113-
Unity 5.3.5f1
114-
Xcode 7.3.1
113+
Unity 2019.2.0f1
114+
Xcode 10.3

unity-swift.unitypackage

-12 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)