jrryhrtn commented on issue #338: support for creating Xcode9 style exportOptions.plist URL: https://github.com/apache/cordova-ios/pull/338#issuecomment-334280012 Your build.json "ios": { "debug": { "codeSignIdentity": "iPhone Developer", "developmentTeam": "XXXXX", "packageType": "development", "provisioningProfile": "XXXX-XXX-XXX-XXX-XXXXXX", "iCloudContainerEnvironment": "Development", "buildFlag": [ "EMBEDDED_CONTENT_CONTAINS_SWIFT = YES", "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO", "LD_RUNPATH_SEARCH_PATHS = \"@executable_path/Frameworks\"" ] } }, "release": { "codeSignIdentitiy": "iPhone Distribution", "developmentTeam":"XXXXX", "provisioningProfile": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "packageType": "ad-hoc", "iCloudContainerEnvironment": "Production", "buildFlag": [ "EMBEDDED_CONTENT_CONTAINS_SWIFT = YES", "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO", "LD_RUNPATH_SEARCH_PATHS = \"@executable_path/Frameworks\"" ] } When you build for device, at least with my setup you have to have the release section filled out as well as the debug. Cordova seems to use the release section for device and exporting .ipa. The release section can be set with packageType== development and provisioningProfile set to a development profile. On Tue, Oct 3, 2017 at 8:11 PM, Jerry Horton <[email protected]> wrote: > "ios": { > "debug": { > "codeSignIdentity": "iPhone Developer", > "developmentTeam": "XXXXX", > "packageType": "development", > "provisioningProfile": "XXXX-XXX-XXX-XXX-XXXXXX", > "iCloudContainerEnvironment": "Development", > "buildFlag": [ > "EMBEDDED_CONTENT_CONTAINS_SWIFT = YES", > "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO", > "LD_RUNPATH_SEARCH_PATHS = \"@executable_path/Frameworks\"" > ] > } > }, > > "release": { > "codeSignIdentitiy": "iPhone Distribution", > "developmentTeam":"XXXXX", > "provisioningProfile": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", > "packageType": "ad-hoc", > "iCloudContainerEnvironment": "Production", > > "buildFlag": [ > "EMBEDDED_CONTENT_CONTAINS_SWIFT = YES", > "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO", > "LD_RUNPATH_SEARCH_PATHS = \"@executable_path/Frameworks\"" > ] > > } > > > My only guess is that you are building for --device and then by default it is using the "release" section, which you do not seem to have fined. > > > On Tue, Oct 3, 2017 at 1:44 AM, Mark Veenstra <[email protected]> > wrote: > >> @surajpindoria <https://github.com/surajpindoria> I do have the latest >> ios platform version added through GitHub. If I manually check the file >> platforms/ios/cordova/lib/build.js in my project the line 100 matches >> the line in the master branch: https://github.com/apache/cord >> ova-ios/blob/cf424b46fb37c00395c1ee9a249280efee5f65b5/bin/ >> templates/scripts/cordova/lib/build.js#L100 >> >> Also when I change this line >> <https://github.com/apache/cordova-ios/blob/cf424b46fb37c00395c1ee9a249280efee5f65b5/bin/templates/scripts/cordova/lib/build.js#L93> >> to: >> >> events.emit('log', 'Reading build config file: ' + path.resolve(buildOpts.buildConfig)); >> >> And I try to build the app with the following command: cordova build ios >> --device --debug --verbose --buildConfig. I can see in the verbose >> output that the correct JSON file is used. >> But still my build fails with the error: >> >> Code Signing Error: Provisioning profile "iOS Team Provisioning Profile: nl.XXX.loc.app" is Xcode managed, but signing settings require a manually managed profile. >> >> My build.json looks like this: >> >> { >> "ios": { >> "debug": { >> "codeSignIdentity": "iPhone Developer", >> "developmentTeam": "XXXXX", >> "packageType": "development", >> "provisioningProfile": "XXXX-XXX-XXX-XXX-XXXXXX", >> "iCloudContainerEnvironment": "Development", >> "buildFlag": [ >> "EMBEDDED_CONTENT_CONTAINS_SWIFT = YES", >> "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO", >> "LD_RUNPATH_SEARCH_PATHS = \"@executable_path/Frameworks\"" >> ] >> } >> } >> } >> >> I am 100% sure the team id and the provisioning profile UUID is correct. >> Any ideas? >> >> ? >> You are receiving this because you were mentioned. >> Reply to this email directly, view it on GitHub >> <https://github.com/apache/cordova-ios/pull/338#issuecomment-333754433>, >> or mute the thread >> <https://github.com/notifications/unsubscribe-auth/AFasb6KgEAIoteBHFg8Pn16sOP15tX63ks5sodfOgaJpZM4PhabP> >> . >> > > ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
