[AC-4886] Modify podfile target during build to match project name
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | n/a |
Status | Resolved |
Resolution | Won't Fix |
Resolution Date | 2017-03-30T06:42:09.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | cli, cocoapods, hyperloop, podfile |
Reporter | Brenton House |
Assignee | Shak Hossain |
Created | 2017-03-29T02:06:01.000+0000 |
Updated | 2017-03-30T06:42:10.000+0000 |
Description
{quote}
As a developer,
I want to have the podfile target modified to match the project name,
So that the project can build successfully.
{quote}
Since the podfile target must match the project name that is defined in the tiapp.xml file, it would be nice if the CLI could modify the target to match whatever the current project name is.
I saw the discussion on Slack earlier this week. And after thinking about it, I'd like to not do this. Primarily, because we want to adapt the native Cocoapods behavior as much as possible. Doing this tightens the external dependencies again and could cause problems once they change the Podfile structure. In addition to that, re-writing the file to the filesystem will slow down the build and the target won't change per app. Finally, Hyperloop will support more targets in the future, that's also why Cocoapods went to target-based Pods. Writing the name manually will cause major problems linking the correct Pods to it's targets. That's why I would propose to go with the current behavior and work as native as possible. Deal?
Deal. Thanks!!