IOS --- There was an internal API error, iosinternalerror

Source: Internet
Author: User

IOS --- There was an internal API error, iosinternalerror

There was an internal API error.

Cause of error: the Product Name is used as the program Name, and the program Name is out of order.

Solution: Check the Product Name. Do not include Chinese characters or special characters. Add Bundle display name: My program name in info. plist. The program Name is changed to English, and the Product Name is also changed to the same.

------------------------

After we change the project name and run the program, the system prompts that the app cannot be found. The reason is as follows:

1. Because A project has two targets, target A and target B! After the project name is changed, the following error is reported when running in the simulator:

Ld: file not found:/Users/xxx/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/xxx. app/xxx

Clang: error: linker command failed with exit code 1 (use-v to see invocation)

2. It may be caused by different project names. We recommend that you change the project name as follows,

Build Setting ---- "Product Name ---

If the check project finds that the project name is correct.

 

3. The following is another solution:

Xcode/Build Settings/Packaging/Private Headers Folder Path and the Name under the Product Module Name should be changed to your project Name.

Check the project and find that this is correct.

 

4. After several twists and turns, it was discovered that the management of target A and target B in the project was chaotic. Follow the path below

Product-> Scheme-> Manage Schemes

Open the schemes Management Panel, delete the deleted and associated items, and the problem is solved.

Some problems may be solved in the first two solutions, but if A project has A problem with target A and target B management after the project name is changed, then 4th solutions will help you!

 

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.