Skip to content

Commit

Permalink
Resolve broken iOS bridging header path
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Miller committed Nov 2, 2017
1 parent 1c201e6 commit eb619d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/UBKit/Files/Xcode/SpecFile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ extension File {
OTHER_CFLAGS: $(inherited) -DINIT_SCRIPTING_BACKEND=1 -fno-strict-overflow -DRUNTIME_IL2CPP=1
CLANG_CXX_LANGUAGE_STANDARD: c++11
CLANG_CXX_LIBRARY: libc++
SWIFT_OBJC_BRIDGING_HEADER: UnityBuildKit/UnityBridge/UnityBridge.h
SWIFT_OBJC_BRIDGING_HEADER: \(projectName)/UnityBridge/UnityBridge.h
CLANG_ENABLE_MODULES: NO
CLANG_WARN_BOOL_CONVERSION: NO
CLANG_WARN_CONSTANT_CONVERSION: NO
Expand Down
7 changes: 3 additions & 4 deletions Sources/UBKit/Files/Xcode/ViewControllerFile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ extension File {
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now()+2) {
let appDelegate = UIApplication.shared.delegate as! AppDelegate
appDelegate.startUnity()
let appDelegate = UIApplication.shared.delegate as! AppDelegate
appDelegate.startUnity()
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now()+5) {
if let newUnityView = UnityGetGLView() {
newUnityView.translatesAutoresizingMaskIntoConstraints = false
self.view.addSubview(newUnityView)
Expand Down

0 comments on commit eb619d5

Please sign in to comment.