Xcode : Unity3d Build iOS - il2cpp-codegen.h Unknown type name '__declspec' NORETURN
Test on:
- Mac OS X El Capitan
- Unity3d 5.2.4f1
- Xcode 7.3
- iPhone 6S iOS 9.1
This is my first time found this error when i'm build iOS platform from Unity then in Xcode when open a project from Unity, I've got stuck an error!
[ Xcode : Error ]
il2cpp-codegen.h
Unknown type name '__declspec'
Expected ';' after top level declarator
[ Solution ]
Remove word "NORETURN" then goto Product > Clean.
An error has gone then click "Build and run current scheme"
Build success and running on device.
I'm not found stability build from Unity and run in Xcode, you need to do such worst method every time when rebuild from Unity but at least, it's work :) for me.
Test on:
- Mac OS X El Capitan
- Unity3d 5.2.4f1
- Xcode 7.3
- iPhone 6S iOS 9.1
This is my first time found this error when i'm build iOS platform from Unity then in Xcode when open a project from Unity, I've got stuck an error!
[ Xcode : Error ]
il2cpp-codegen.h
Unknown type name '__declspec'
Expected ';' after top level declarator
[ Solution ]
Remove word "NORETURN" then goto Product > Clean.
An error has gone then click "Build and run current scheme"
Build success and running on device.
I'm not found stability build from Unity and run in Xcode, you need to do such worst method every time when rebuild from Unity but at least, it's work :) for me.





Comments
Post a Comment