Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 20BC5200B93 for ; Sat, 17 Sep 2016 00:56:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1F622160AD9; Fri, 16 Sep 2016 22:56:38 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3D6E3160AC4 for ; Sat, 17 Sep 2016 00:56:37 +0200 (CEST) Received: (qmail 97245 invoked by uid 500); 16 Sep 2016 22:56:36 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 97229 invoked by uid 99); 16 Sep 2016 22:56:36 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2016 22:56:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 95D821A54B6 for ; Fri, 16 Sep 2016 22:56:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Au9LJFjYocr2 for ; Fri, 16 Sep 2016 22:56:33 +0000 (UTC) Received: from mail-it0-f50.google.com (mail-it0-f50.google.com [209.85.214.50]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 8D2D95F238 for ; Fri, 16 Sep 2016 22:56:32 +0000 (UTC) Received: by mail-it0-f50.google.com with SMTP id 186so28398800itf.0 for ; Fri, 16 Sep 2016 15:56:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=tn/KLWTuuDD4OpYp4kwH2STapLUYXa66g7pJVeWlYGs=; b=p7y1hmBAQ+8NeU+Kb1dFH1k2n7elozx+WnOHJkZmoijUqhSHvmApv65UCtR11k/sAK anOU4Tcj3KXSRK2QCZ3DKc0XcXeV0kdD7OqDc3uEQqy7vLvkDQd6SlNEFxsVeSKMEEM/ KQrWd5CUo0RvZp9p4O7otInaNCPMOoLtZrJnToUE7DL6EDbnbLObRKVINEf7KPN413/B WfiQTaipWToqc7ho0TbcEHI1e5Xiozwx0fhANPxCM1tSrQ7PwnokT2Q4lcILnSTX+mAy O4qkwTBtJmzTUH0tR/zD4grXFnac9LjWbxmMhmiH244nrmDBONhGk5R/69mQLo/5meRT Wxqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=tn/KLWTuuDD4OpYp4kwH2STapLUYXa66g7pJVeWlYGs=; b=LzIfPZZEXPjQ5rDtFm85vxywTY9Qa8l2GhZoeD/TlwFlTq9SYViMs3tskWnwQwBST1 UXDgouOJMWpHwBUGYZHImLjmR5K4S9Ac8eUSwn3RwLLT7iMTwGVxdcFALB+P/4sruPef 0nTsOJqUlyAqAIMZHs7cLJXy/Ah/s/8EPbGInce+tHcFPmi06cgH9YOC4+NTw7l9jMl8 fAwRbBSBeL2jcVaQGi4iCd3vHydo/IUxSmFLGhA+1eRuQ7H9hZHLsJN761Zt+RELXshV 9RmhlXl0KRgMFZHcYwPPZTrLm2D0wHiZjbKoQR1IVIqg8qKEyFwmOM8hZUgQKdRmKpaM 1J2g== X-Gm-Message-State: AE9vXwOeKHCa43PzJvlhsQIYpEokOVXVcpITzIalEpaRj943LjUnOrluv4qLeNam985pmYecT5B9xsXqLHV8xQ== X-Received: by 10.36.67.13 with SMTP id s13mr8646490itb.91.1474066591212; Fri, 16 Sep 2016 15:56:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.206.193 with HTTP; Fri, 16 Sep 2016 15:55:50 -0700 (PDT) In-Reply-To: References: From: Shazron Date: Fri, 16 Sep 2016 15:55:50 -0700 Message-ID: Subject: Re: Xcode 8 packaging changes To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=001a11441a048b70b5053ca7df48 archived-at: Fri, 16 Sep 2016 22:56:38 -0000 --001a11441a048b70b5053ca7df48 Content-Type: text/plain; charset=UTF-8 Like I mentioned in Kerri's discussion re: launch storyboard, the Xcode 6 requirement was an error in the docs unfortunately. We only support what Xcode was needed to submit to the App Store. We were waiting until Apple dropped Xcode 6, and we forgot to update the docs. So how do we determine if Apple drops support for an Xcode version? See: https://developer.apple. com/library/content/qa/qa1806/_index.html under "Testing Legacy Tool Support". Here's where it gets tricky: Xcode 7.3.1 still validates (iOS 9 SDK latest) Xcode 6.4 still validates (iOS 8 SDK latest) I used the Hello Cordova app which is pretty barebones so it validates easily. So using that rule is not foolproof. Here's a better way as a "carrot". For example, now MPMediaQuery on iOS 10 will ask for permissions before an app can scan your media library. Previously, you don't need to ask permission. Enterprising companies might try to build using the iOS 9 or older SDK, or keep using their old app to try to "get around this". But I suspect it won't work (I'll double check). It's like how they introduced Contacts permissions in iOS 9 -- apps built using older SDKs (<= 8) will just silently fail on an iOS 9 device, so your app is crippled, so it's in your best interest to upgrade to a newer SDK build. Note that this is not an Xcode limitation, but a SDK limitation -- usually to use a newer SDK you need to get the newer Xcode. On Thu, Sep 15, 2016 at 5:31 PM, Jesse wrote: > +1 to dropping 6 and moving towards 8 > What is apple's required version of xcode for submitting apps to the app > store? > > Does it make sense to always build with the developer cert unless the dev > specified otherwise? I think there might be cases where I would want to > run the release build on my own device before submitting it. > > > > > @purplecabbage > risingj.com > > On Thu, Sep 15, 2016 at 1:38 PM, Darryl Pogue wrote: > > > So Xcode 8 is out, and it simplifies some aspects of code signing, but > > complicates the process of packaging an app. > > > > Currently, cordova-ios will use the "iPhone Developer" certificate when > > building a debug build, and the "iPhone Distribution" certificate when > > making a release build. It uses xcrun with the (deprecated) > > PackageApplication option to bundle up the build into an IPA file. > > > > > > Xcode 8 has automatic provisioning, which means instead of dealing with > > specifying a bunch of certificate files, you can pretty much just give > it a > > team identifier and it will figure things out. With one catch: you need > to > > use the "iPhone Developer" certificate. Support for the team identifier > in > > build.json has already been added to cordova-ios master. > > > > However, in order to make a build in Xcode 8 with automatic provisioning > > and a distribution certificate, you need to run the xcodebuild archive > > step, and then an exportArchive step to generate the IPA. This workflow > has > > been supported since Xcode 7. > > > > Currently, since Cordova uses xcrun PackageApplication, it is packaging > up > > a release build with the development certificate. This build cannot be > > submitted to the App Store. > > > > > > My proposal is for cordova-ios to drop support for Xcode 6 with the xcrun > > packaging, and start using xcodebuild for archiving and generating the > IPA. > > I suppose that would have to wait for a major version bump of > cordova-ios, > > unless we detected the Xcode version and kept the old code around > > conditionally. > > > > As part of packaging, we would need to generate a exportOptions.plist > file, > > indicating what type of build to package (development, enterprise, > ad-hoc, > > or app-store). I'd suggest we add a "packageType" or "buildType" field to > > build.json for specifying this value (with a default of development). > > > > > > I'm happy to start prototyping this on a branch if it sounds like the > right > > approach going forward. > > > > > > Related info: > > https://pewpewthespells.com/blog/migrating_code_signing.html > > #building-for-distribution-xcode-8 > > https://dpogue.ca/articles/cordova-xcode8.html > > > --001a11441a048b70b5053ca7df48--