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

ASF GitHub Bot commented on CB-14192:
-------------------------------------

mlegenhausen edited a comment on issue #378: CB-14192: (ios) Add project 
settings to explicitly use legacy build s…
URL: https://github.com/apache/cordova-ios/pull/378#issuecomment-421369394
 
 
   The Xcode 10 GM is avaibable.
   
   The provided pull request does not work with the GM release, but I found 
another solution. You can disable the modern buildsystem with `xcodebuild 
-UseModernBuildSystem=NO ...`.
   
   After you added the switch get another error that "your project path" is not 
a valid command. It seems that in the case of `archive` it is not possible 
anymore to supply the project folder as last parameter. So I needed to make 
`-workspace` and `-archivePath` an absolute path. The `options` for the 
`isDevice` case need to be changed to
   
   ```js
   options = [
       '-UseModernBuildSystem=NO',
       '-xcconfig', customArgs.xcconfig || path.join(__dirname, '..', 'build-' 
+ configuration.toLowerCase() + '.xcconfig'),
       '-workspace', customArgs.workspace || path.join(projectPath, projectName 
+ '.xcworkspace'),
       '-scheme', customArgs.scheme || projectName,
       '-configuration', customArgs.configuration || configuration,
       '-destination', customArgs.destination || 'generic/platform=iOS',
       '-archivePath', customArgs.archivePath || path.join(projectPath, 
projectName + '.xcarchive')
   ];
   ```
   
   Finally you need to remove the `projectPath` parameter from 
`spawn('xcodebuild', xcodebuildArgs)`.
   
   Are you planing to which with `cordova-ios` to the new build systems? If not 
I can provide my fix as pull request.

----------------------------------------------------------------
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:
us...@infra.apache.org


> Cordova iOS doesn't build with Xcode 10
> ---------------------------------------
>
>                 Key: CB-14192
>                 URL: https://issues.apache.org/jira/browse/CB-14192
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-ios
>            Reporter: Sebastian Grail
>            Priority: Minor
>
> Xcode 10 uses the new build system by default. Any project not explicitly 
> choosing the legacy build system will build with new system. Currently, 
> Cordova iOS fails to build with the new system. The simplest solution is to 
> explicitly use the legacy build system.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to