Problems encountered in Xcode development

Time:2019-11-24

1. After the package is successfully packed, it will be published to dandelion, and it will display “not signed, only jailbreak cell phone can be installed”.

This problem occurs because the signature was not obtained during packaging. Here are the general steps to configure signatures.

Problems encountered in Xcode development

When packing, you need to click the top left corner to select this device:

Problems encountered in Xcode development

Then select product = archive to generate the installation package

Problems encountered in Xcode development

Then select development

Problems encountered in Xcode development

Just click on the next step. But when it is uploaded to dandelion, occasionally there will be “unsigned, need to install jailbreak mobile phone”.

In this way, you can perform the following three steps to solve the problem:

Step 1: click Xcode = preferences to reinstall the certificate

Problems encountered in Xcode development

Step 2: clean up the project and click product = > clean

Step 3: exit Xcode (exit not close), and restart Xcode software. Then execute product =, archive. You’ll find that there’s no problem.

2.bitcode

There was a problem packing

error: Invalid bitcode signature
clang: error: linker command failed with exit code 1 (use -v to see invocation)

If this error is reported, just adjust the settings here. Here is the screenshot

Problems encountered in Xcode development

After performing the three steps above, I found that the error above was not reported.

However, there are new problems, suggesting that the IOS system version supported by Xcode is a little low. The plug-in needs to be more than 12.2. So, upgrade the Mac OS system and install the latest Xcode, and everything will happen~~~

3.run

When I was debugging the real machine, I ran and reported an error.

Install claimed to have succeeded, but application could not be found on device. bundleId = xxxxxxx

In this case, modify the environment of the compiling system.

Click file = workspace setting. Then adjust it as follows

Problems encountered in Xcode development