iOS there is an internal API error

Source: Internet
Author: User

There is an internal API error.

Error Reason: Product name as program name, program name confusion

Workaround: Check the product Name and do not include Chinese and special characters. Added the bundle display Name: My program name in Info.plist. The program name is changed to English, and Product name is changed to the same.

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

When we changed the name of the project, when we ran the program, we were prompted not to find the app.

The reasons are as follows:

1. Because there are two target in a project, it is called Target A and target B! After the project name has been changed, the following error is reported when running in the emulator:

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 is possible that the project name is different, it is recommended to change the project name according to the following path.

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

If you check the project, the project name is no problem.

3. Here's another solution:

Xcode/build settings/packaging/private Headers Folder path and product Module name under name change to your project name.

Inspection works found that this is also true.

4. After several twists and turns, it was discovered that the project's target a and target B managed to confuse the problem. Press the path below

Product-> scheme-> Manage Schemes

Open the Schemes Admin panel, then delete the deleted, associate the associated, and the problem is resolved.

Some problems may be solved in the first two scenarios, but if a project has a problem with the management of target A and target B after changing the project name, a 4th solution will help you!

iOS there is an internal API error

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.