New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ios): fix watchOS targets that include frameworks #11708
Conversation
if (!currentFileRef.path.includes('extensions/') && currentFileRef.sourceTree === '"<group>"') { | ||
xobjs.PBXFileReference[extFrameworkReference].path = `${ext.relPath}/${currentFileRef.path}`; | ||
xobjs.PBXFileReference[extFrameworkReference].name = currentFileRef.path; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before, the build failed because the frameworks embedded into the targets would only have the relative path to the build directory, e.g. MyTarget/MyFramework.framework
instead of the relative Titanium project path.
@@ -3430,7 +3436,7 @@ iOSBuilder.prototype.createXcodeProject = function createXcodeProject(next) { | |||
}); | |||
} | |||
|
|||
const handledBuildPhases = [ 'PBXSourcesBuildPhase', 'PBXFrameworksBuildPhase', 'PBXResourcesBuildPhase', 'PBXCopyFilesBuildPhase' ]; | |||
const handledBuildPhases = [ 'PBXSourcesBuildPhase', 'PBXFrameworksBuildPhase', 'PBXResourcesBuildPhase', 'PBXCopyFilesBuildPhase', 'PBXShellScriptBuildPhase' ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PBXShellScriptBuildPhase
wasn't handled so far, causing optional framework scripts to be skipped.
@@ -3643,8 +3654,6 @@ iOSBuilder.prototype.createXcodeProject = function createXcodeProject(next) { | |||
|
|||
if (legacySwift) { | |||
extBuildSettings.EMBEDDED_CONTENT_CONTAINS_SWIFT = 'YES'; | |||
} else { | |||
extBuildSettings.ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = 'YES'; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was an old left over from the Swift 2 times. Nowadays, swift support us enabled by default and the build manages the ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
flag on a module level.
|
FR Passed |
JIRA: https://jira.appcelerator.org/browse/TIMOB-27757
We are using this fix locally for around 4 months now but never had the chance to push the change. I added some inline comments to describe parts of these changes.