swift-unity icon indicating copy to clipboard operation
swift-unity copied to clipboard

Xcode project doesn't compile any more when exporting from Unity 2018.2

Open pauberson opened this issue 6 years ago • 5 comments

I added 2018.2 to the XcodePostBuild.cs but when trying to build the Xcode project I get this error:

/demo/xcode/DemoApp/Unity/Classes/Unity/DeviceSettings.mm:255:1: Control may reach end of non-void function

pauberson avatar Jul 27 '18 15:07 pauberson

That is a correct message from the compiler. Just add a return deviceUnkown; at line 255. But then I receive 95 errors all with "Vuforia::" in the message...

MV-EricDeHaan avatar Aug 01 '18 13:08 MV-EricDeHaan

Yes, I then tried that and got a load of other errors too. This code is the same as in the normal unity build which does compile, so maybe there are some different compiler/xcode settings needed for 2018.2?

pauberson avatar Aug 01 '18 13:08 pauberson

try to import Vuforia.framework for your project. read this, guys! https://github.com/jiulongw/swift-unity/issues/89

ericqqqqq avatar Aug 01 '18 19:08 ericqqqqq

also, instead of add return for non-void function, you guys can try to set Mismatched Return Type to No

ericqqqqq avatar Aug 01 '18 20:08 ericqqqqq

The correct solution here is to set Mismatched Return Type to No in build settings.

noahsark769 avatar Nov 16 '18 23:11 noahsark769