You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Chen Xu (JIRA)" <ji...@apache.org> on 2014/06/20 21:54:25 UTC

[jira] [Comment Edited] (CB-3768) Build to phone failing on Xcode 5 DP1 (OS X Mavericks)

    [ https://issues.apache.org/jira/browse/CB-3768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14039074#comment-14039074 ] 

Chen Xu edited comment on CB-3768 at 6/20/14 7:53 PM:
------------------------------------------------------

After I made the changes to Architectures  in Build setting, I did the following:
add -lCordovaLib to  Other Linker Flags section of Build Phases.

More details are here:
http://stackoverflow.com/questions/22583690/linker-command-failed-with-exit-code-1-undefined-symbols-for-architecture-armv7

You import a header and do not link against the correct library. This is common, especially for headers for libraries like QuartzCore since it is not included in projects by default. To resolve:

Add the correct libraries in the Link Binary With Libraries section of the Build Phases.

If you want to add a library outside of the default search path you can include the path in the Library Search Paths value in the Build Settings and add 
-l{library_name_without_lib_and_suffix} (eg. for libz.a use -lz) to the Other Linker Flags section of Build Settings.


was (Author: xuc):
After I made the changes to Architectures  in Build setting, I did the following:
add -lCordovaLib to  Other Linker Flags section of Build Settings.

More details are here:
http://stackoverflow.com/questions/22583690/linker-command-failed-with-exit-code-1-undefined-symbols-for-architecture-armv7

You import a header and do not link against the correct library. This is common, especially for headers for libraries like QuartzCore since it is not included in projects by default. To resolve:

Add the correct libraries in the Link Binary With Libraries section of the Build Phases.

If you want to add a library outside of the default search path you can include the path in the Library Search Paths value in the Build Settings and add 
-l{library_name_without_lib_and_suffix} (eg. for libz.a use -lz) to the Other Linker Flags section of Build Settings.

> Build to phone failing on Xcode 5 DP1 (OS X Mavericks)
> ------------------------------------------------------
>
>                 Key: CB-3768
>                 URL: https://issues.apache.org/jira/browse/CB-3768
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.5.0, 2.8.0
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>              Labels: mavericks, xcode5
>             Fix For: 2.9.0
>
>         Attachments: linkerror.png
>
>
> I know it's a Dev Preview, but we should fix this as we go along the beta so we are not totally surprised when final goes out.
> More details here: https://github.com/shazron/phonegap-questions/issues/16
> ---
> Been happily building to my phone with Xcode 4.6 (phonegap/cordova 2.5.0)
> installed ios7 developer preview and Xcode 5 DP and now building to the phone fails.
> (error screenshot here: http://d.pr/i/akfq, let me know if I can get specifics for you)
> Build succeeds and runs fine in iOS simulator.



--
This message was sent by Atlassian JIRA
(v6.2#6252)