Summary of various pits in iOS system after unity is compiled into Xcode under Mac

Source: Internet
Author: User

Unity3d version: 5.3.0f4

Xcode version: 7.3.1

-xcode7.3.1 has supported the developer certificate-free debugging, this version no longer need to spend 99 knife purchase personal developer certificate, only need personal appstoreid can be debugged;

-After the version Unity3d project was compiled into the Xcode executable, 2 errors were reported during the import of iOS, as described below:

1. "Unknown type name __declspec"

Workaround: Locate the Il2cpp-config.h file in Xcode and find it on line 181 (up and down)

#define Noreturn __declspec (noreturn)

Change into

#define Noreturn __attribute__ ((noreturn))

2, after the above modifications continue to compile will meet the second error:

"_ksecreturndata", referenced from: (Omitted below) ... "

Workaround: Add the library file Security.framework

After solving these 2 problems, you can normally import the project into the iOS system.

Summary of various pits in iOS system after unity is compiled into Xcode under Mac

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.