Problems with configuring xcode Development Environment

Source: Internet
Author: User

Problems with configuring xcode Development Environment

 

Install a new MAC system on your computer and use the same Apple ID as your computer. You want to configure a development environment with the same host.

Therefore, when Mac OS X is upgraded, it is updated from 10.7 To 10.7.4.

Then, xcode 4.5 was installed. (Supports iOS 6)

Question 1:

Go to the certificates under development .apple.com and distribution in xcode

Refresh in the organizer of, but in the status of provisioning profiles, it shows valid signing identity not found, and there is a blank area in "My creden。" in key chains. The certificate in the "credential" is not subject to the new key.

Solution Method:

In the production system, open the key chians, find the key used for development and development, right-click the key, select the key, and then click it. Copy the p12 file to the new system, drag it to the key, and then encrypt it for security. After that, the organizer will automatically refresh and you will see that the status of provisioning profile changes to "valid profile"

Question 2:

Copy the previous project to the new system and open clean and build. An error is prompted:

"Libxml/tree. H" file not found.

Solution:

Project-> edit project setting-> build header search paths in seatch paths

Change/usr/include/libxml2 to $(sdkroot)/usr/include/libxml2.

 

The complete configuration method is as follows:

 

Adding libxml2 is a big, fat, finicky pain in the ass. If you're Going To Do It do it before you get too far in building your project.

Here's how.

Target settings

Click on your target (not your project) and select "build phases ". click on the reveal triangle titled "link binary with libraries ". click on the "+" to add a library. scroll to the bottom of the list and select "libxml2.dylib ". that adds the libxml2 library 2 your project... But wait.

Project Settings

Now you have to tell your project where to look for it three more times.

Select the "build settings tab ". scroll down to the "linking" section. under your project's columns double click on the "other linker flags" Row. click the "+" and add "-lxml2" to the list.

Still more.

In the same tab, scroll down to the "Search paths" section. Under your project's column in"Framework search paths"Row add"/Usr/lib/libxml2.dylib".

In"Header search paths"And"User header search paths"Row add"$ (Sdkroot)/usr/include/libxml2". In those last two cases make sure that path is entered in debug and release.

Then. Under the "product" menu SELECT "clean ".

Then, if I were you (and let's face it I probably am) I 'd quit xcode and walk away. When you come back and launch you shoshould be good to go.

Question 3:

The following error message is displayed during the build process:

....... Libphonegaplib. A, file was built for archive which is not the architecture being linked (armv7s ).......

Start Data Query

Http://stackoverflow.com/questions/5303933/xcode4-linking-problem-file-was-built-for-archive-which-is-not-the-architecture

If you encounter a similar problem, the solution is I changed 'build active architecture only' of tapkulibrary from yes to no and it compiles with no problem.

In build settings of the project, build active architecture only has been set to No.

 

Xcode cannot run using the selected device.

Choose a destination with a supported architecture in order to run on this device.

 

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.