How do you define the target for Specific Build Settings or Adding Frameworks?
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, nodejs
- 領域
- build-system, mobile, tooling
調査の方向性
まず、レポートに示されている extTarget.uuid を使用して、pbxProject.prototype.updateBuildProperty と addFramework を、pbxfile/addToFrameworkSearchPaths の経路も含めて追跡します。完了の条件は、ビルドプロパティとカスタムフレームワークがメインプロジェクトだけでなく、追加された app-extension ターゲットに適用されることです。
索引モデルが 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
- スター
- 217
- フォーク
- 102
- 平均マージ
- 2日 9時間
- マージ済み PR(30日)
- 8
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/cordova-node-xcode のほかの issue
-
Add & Improve JSDocs オープンenhancement
apache/cordova-node-xcode#171 · 担当者 1 名 ·
-
🔖 New release オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
apache/cordova-node-xcode#162 · コメント 4 件 · リアクション 2 件 ·
-
Install .xcframework オープン
難易度 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 1週間以上 初心者へのやさしさ 25/100
apache/cordova-node-xcode#137 · リアクション 2 件 ·
apache/cordova-node-xcode の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
TheOdinProject/curriculum#31423 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
WGBH-MLA/dream-aapb#69 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
Mintplex-Labs/anything-llm#6490 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
openlayers/ol-cesium#1364 ·