How do you define the target for Specific Build Settings or Adding Frameworks?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, nodejs
- Lĩnh vực
- build-system, mobile, tooling
Hướng nghiên cứu
Bắt đầu bằng cách lần theo pbxProject.prototype.updateBuildProperty và addFramework, bao gồm cả đường dẫn pbxfile/addToFrameworkSearchPaths, sử dụng extTarget.uuid được nêu trong báo cáo. Hoàn tất nghĩa là các thuộc tính build và framework tùy chỉnh được áp dụng cho target app-extension được thêm vào, thay vì chỉ áp dụng cho project chính.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- JavaScript
- Star
- 217
- Fork
- 102
- Merge trung bình
- 2 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 8
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/cordova-node-xcode
-
Add & Improve JSDocs Đang mởenhancement
apache/cordova-node-xcode#171 · 1 người được giao ·
-
🔖 New release Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
apache/cordova-node-xcode#162 · 4 bình luận · 2 reaction ·
-
Install .xcframework Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 28/100
apache/cordova-node-xcode#139 · 2 bình luận ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
apache/cordova-node-xcode#138 · 2 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
apache/cordova-node-xcode#137 · 2 reaction ·
Tất cả issue của apache/cordova-node-xcode
Issue tương tự
-
Update HugeIcons library Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
antfu-collective/icones#398 ·
-
ECmail.com Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
wesbos/burner-email-providers#554 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
radiantearth/stac-browser#1023 ·
-
HMR stops working Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
components-web-app/docs#92 ·