cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-3768) Build to phone failing on Xcode 5 DP1 (OS X Mavericks)
Date Thu, 13 Jun 2013 11:18:20 GMT

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

Shazron Abdullah commented on CB-3768:
--------------------------------------

Notes on why it failed and the true fix below.

We had this in the CordovaLib.xcodeproj/project.pbxproj:
{code}
			buildSettings = {
				"ARCHS[sdk=iphoneos*]" = armv7;
				"ARCHS[sdk=iphoneos6.*]" = (
					armv7,
					armv7s,
				);
                                /* other settings here */
                         };
{code}

Of course, under iOS 7, the iphoneos.* sector applies, which doesn't include the armv7s arch
needed. Under iOS6, this selector would only be used when compiling under an older Xcode with
the iOS 5 SDK.

The fix will be to edit CordovaLib.xcodeproj/project.pbxproj in the repo with the iOS 7 selector
needed. Namely, copy the iphoneos6.* selector section wherever it occurs and replace 6 with
7. e.g.:

{code}
			buildSettings = {
				"ARCHS[sdk=iphoneos*]" = armv7;
				"ARCHS[sdk=iphoneos7.*]" = (
					armv7,
					armv7s,
				);
				"ARCHS[sdk=iphoneos6.*]" = (
					armv7,
					armv7s,
				);
                                /* other settings here */
                         };
{code} 
                
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message