[
https://issues.apache.org/jira/browse/CB-9254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15166849#comment-15166849
]
Steve Gill commented on CB-9254:
--------------------------------
Created a PR. https://github.com/apache/cordova-ios/pull/198
Essentially doing a copy of
cordova-ios/bin/templates/project/_PROJECT_NAME_/Classes/ into
MYPROJECT/platforms/ios/PROJECTNAME/Classes/ and small string replace in those
files that createProject command does.
Might want to refactor more and get both createProject and updateProject
functions to use the same function for this.
Take a look and see if we should be updating more of these native files when
doing a update command. Essentially, any of these files
https://github.com/apache/cordova-ios/blob/master/bin/lib/create.js#L166-L200.
Obviously, my PR takes care of copying over updated AppDelegate.(h|m) and
MainViewController.(h|m) files. Would be trivial to add those updates to the
PR.
Any issue with me doing this update? Would xCode complain I replaced those
files?
> update_cordova_subproject command for cordova-ios 4.0.0-dev results in a
> build error
> ------------------------------------------------------------------------------------
>
> Key: CB-9254
> URL: https://issues.apache.org/jira/browse/CB-9254
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 4.0.0
> Environment: Mac OS X Yosemite 10.10.3, Xcode 6.3.1, iOS 8
> Reporter: Inderpreet
> Assignee: Shazron Abdullah
> Labels: cordova-ios-4.0.x, cordova-ios-4.1.0
>
> When updating existing iOS sub project reference to 4.0.0-dev version using
> update_cordova_subproject command as mentioned in ReadMe file
> (https://github.com/apache/cordova-ios/blob/4.0.x/README.md) we get a build
> error in Xcode - _Error : No visible @interface for 'CDVViewController'
> declares the selector 'webViewDidFinishLoad:'_
> In order to resolve it, we at our end have updated our source code
> MainViewController.m class by replacing it with the file present in templates
> folder
> cordova-ios/bin/templates/project/__PROJECT_NAME__/Classes/MainViewController.m
>
> (https://github.com/apache/cordova-ios/raw/4.0.x/bin/templates/project/__PROJECT_NAME__/Classes/MainViewController.m)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]