Skip to content

Commit eb619d5

Browse files
author
Eric Miller
committed
Resolve broken iOS bridging header path
1 parent 1c201e6 commit eb619d5

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Sources/UBKit/Files/Xcode/SpecFile.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ extension File {
6161
OTHER_CFLAGS: $(inherited) -DINIT_SCRIPTING_BACKEND=1 -fno-strict-overflow -DRUNTIME_IL2CPP=1
6262
CLANG_CXX_LANGUAGE_STANDARD: c++11
6363
CLANG_CXX_LIBRARY: libc++
64-
SWIFT_OBJC_BRIDGING_HEADER: UnityBuildKit/UnityBridge/UnityBridge.h
64+
SWIFT_OBJC_BRIDGING_HEADER: \(projectName)/UnityBridge/UnityBridge.h
6565
CLANG_ENABLE_MODULES: NO
6666
CLANG_WARN_BOOL_CONVERSION: NO
6767
CLANG_WARN_CONSTANT_CONVERSION: NO

Sources/UBKit/Files/Xcode/ViewControllerFile.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ extension File {
3636
override func viewDidAppear(_ animated: Bool) {
3737
super.viewDidAppear(animated)
3838
39-
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now()+2) {
40-
let appDelegate = UIApplication.shared.delegate as! AppDelegate
41-
appDelegate.startUnity()
42-
39+
let appDelegate = UIApplication.shared.delegate as! AppDelegate
40+
appDelegate.startUnity()
41+
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now()+5) {
4342
if let newUnityView = UnityGetGLView() {
4443
newUnityView.translatesAutoresizingMaskIntoConstraints = false
4544
self.view.addSubview(newUnityView)

0 commit comments

Comments
 (0)