To add. A files to the project, many tutorials are about:
Right-select add->existing files ..., select the. a file and the corresponding. h header file. Or drag the two files into the Xcode project directory structure, tick the copy items into destination Group's folder (if needed) in the popup screen, and make sure the add to targets tick the corresponding target.
But it's not really going so well. Added a few times. A files are in trouble, and today we meet again--
Ld:warning:directory not found for option '-l '/users/lanmei/work/iphone/trunk/baiying/baiying/... "
Ld:library not found For-lmobclicklibrary
Clang:error:linker command failed with exit code 1 (use-v to see invocation)
The root of the problem was finally found today. Look at the above warning in fact can find the root cause completely. The library compiler added to the project has no way to find the path.
You need to set the path in Xcode. When added, Xcode generates a path, but the path may be incorrect, causing the problem. Specific setting Location: