jiulongw / swift-unity

Sample code that integrate Unity (2017.1+) scene into iOS (Swift 4.0, Xcode 9+) project.
388 stars 100 forks source link

Xcode Continuous Integration Server #113

Open NinjaSnail42 opened 5 years ago

NinjaSnail42 commented 5 years ago

Hi, this repository has been extremely helpful in integrating our Unity Project with Xcode. Has anyone had any luck setting up a CI server with Unity integration? I keep running into errors such as :

Error: Build input file cannot be found: '/Users/ci/Library/Caches/XCSBuilder/Bots/e93f75477ced8781351221f9cb000c20/Source/Project/Unity/Classes/main.mm'

I tried putting the Unity Build folder under Macintosh HD/ and adjusting Exports.xcconfig file so that when Xcode Server pulls from Git and builds, it will pull from the Unity Build directory under Macintosh HD.

NinjaSnail42 commented 5 years ago

Update: I have been able to get a CI server to work, but I had to add all of the files in the Xcode project except for the lib files to git. I also had to change the Temp build directory to a common directory (Macintosh HD/example/). Then I had to copy the temp build folder to the build server so that the project could build and run the unit tests. I think that this still should be looked into so that it isn't so difficult to do.

vanessaaleung commented 5 years ago

Hi @NinjaSnail42 I encounter this problem too, did you solve this? I can't quite understand your above comment, do you mean manually add Unity output Classes and Libraries folder to XCode Unity folder?