-
Notifications
You must be signed in to change notification settings - Fork 11
Build Cardboard iOS SDK for Unity
cai-mobfish edited this page Jul 7, 2020
·
2 revisions
Note: This tutorial is based on XCode 11.5
-
Download/Clone the Fork from official Google Cardboard SDK
- https://github.com/mobfishgmbh/cardboard
- git clone https://github.com/mobfishgmbh/cardboard.git
- Check out the branch
mobfish-dev
-
Open project in Xcode - "Cardboard.xcworkspace"
-
Select the project "sdk"
-
Set the active scheme to "Generic iOS Device"
-
In PROJECT->sdk, under the "Info" tab, set "iOS Deployment Target" to 10.0.
-
Under the "Build Settings" tab, select filter "All" and "Combined", and set the value "ONLY_ACTIVE_ARCH" to "No".
-
Build the SDK: "Product -> Build".
-
"libsdk.a" will be generated under "Products", in "Project navigator" tab.
- Note: The actual file location is not inside the project folder, but a place in user directory.
- The actual file location on my side: "Users/[username]/Library/Developer/Xcode/DerivedData/Cardboard-[hash]"/Build/Products/Debug-iphoneos/"
- You can get the file by right click on the file in Project navigator, and click "Show in Finder".
- Home
- Package Usage
- API Usage
- Cardboard Profile
- Unity 2019 Note
- Current Development Status
- Build Cardboard SDK for Unity