How do you define the target for Specific Build Settings or Adding Frameworks?
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript, nodejs
- 领域
- build-system, mobile, tooling
调研方向
首先使用报告中显示的 extTarget.uuid,跟踪 pbxProject.prototype.updateBuildProperty 和 addFramework,包括 pbxfile/addToFrameworkSearchPaths 路径。完成的标准是构建属性和自定义 framework 应用于添加的 app-extension target,而不只是主项目。
由索引模型根据 Issue 内容生成。
描述
I've made an App Extension with the addTarget function but even though I have the target defined like so :
// (some global paths deliberately left out but they all point correctly)
var extFiles = [
'NotificationService.h',
'NotificationService.m',
`${extName}-Info.plist`,
'appgroupconfig.json',
'PushExtension.entitlements',
];
const proj = xcode.project(projPath);
proj.parseSync();
// Copy in the extension files
fs.mkdirSync(`${iosPath}${extName}`);
extFiles.forEach(function (extFile) {
let targetFile = `${iosPath}${extName}/${extFile}`;
fs.createReadStream(`${sourceDir}${extFile}`)
.pipe(fs.createWriteStream(targetFile));
});
// Add a target for the extension
let extTarget = proj.addTarget(extName, 'app_extension');
I cannot seem to define any buildProperties for it specifically. For example, the function
pbxProject.prototype.updateBuildProperty = function(prop, value, build)
takes in the property key the value and the build but this will only update the main project and not any of the targets defined.
The target parameter in the addFramework function doesn't appear to work either. When digging into the pbxfile that it creates to addToFrameworkSearchPaths the target is not passed or accessed in the constructor. The following code doesn't add the Framework to the target:
var opt = {target: extTarget.uuid, embed: true, customFramework: true, sign: true}
proj.addFramework(`${custom_framework_path}`, opt);
Can somebody please point me to the right direction here? I don't know what I'm doing wrong.
- 主要语言
- JavaScript
- 星标
- 218
- 派生
- 102
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/cordova-node-xcode 的其他 Issue
-
Add & Improve JSDocs可能重新可做 @erisu 于 109 天前认领,目前没有进行中的 PR。 未关闭enhancement
apache/cordova-node-xcode#171 · 已指派 1 人 ·
-
🔖 New release未关闭
难度 3/5 1-2 天 新手友好度 35/100
apache/cordova-node-xcode#162 · 4 条评论 · 2 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 28/100
apache/cordova-node-xcode#139 · 2 条评论 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
apache/cordova-node-xcode#138 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
apache/cordova-node-xcode#137 · 2 个 reaction ·
查看 apache/cordova-node-xcode 的全部 Issue
相似的 Issue
-
bug user-priority/P2
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
bug confirmed perf
难度 2/5 1-3 小时 新手友好度 72/100
videojs/video.js#9400 · 1 条评论 ·
维护者通常 1 天内回复
-
agent/scanner bug hive/hosted-available-lke648397-260827-5n31
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
rescript-lang/rescript#8765 ·
维护者通常 1 天内回复
-
feedback simulation workshop
难度 2/5 1-3 小时 新手友好度 62/100
githubnext/gh-aw-workshop#4417 ·
维护者通常 1 天内回复