惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LangChain Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
量子位
V
V2EX
S
SegmentFault 最新的问题
月光博客
月光博客
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
V
Visual Studio Blog
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
博客园_首页
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
美团技术团队
Y
Y Combinator Blog
The Cloudflare Blog
C
Check Point Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
腾讯CDC
B
Blog
Stack Overflow Blog
Stack Overflow Blog
P
Proofpoint News Feed

V2EX - Apple

ios 版本更新至 18.7.8 后部分 app 出现无法联网的情况 Codex App 替代全局语音输入 苹果中国官网挂了 Apple 苹果开发者现在被正式盯上了吗,报税通知邮件大家有没有收到? 中国账号开始强制 iCloud 云贵 😊Vibe 了一个给 iOS6 用的 AI 聊天客户端 App 审核 In Review 两周了 请问大佬们现在 iOS 的自签续签都用啥软件?能手机上完成续签操作的? 在京东上买了 iPhone air 14pro, 1t, 18.7.8,电池 81,感觉还能用 2 年 请教巨佬:现在 [4 月 23 日] 这个时间点值得买 iphone17 吗? 受够了 Mac OS 上 Finder 的搜索体验,写了个 macOS 文件搜索工具 ios18.7.8 能更新么 盖世游戏 macOS 太好用了,比 crossover 好多了 14 寸 M5PRO 的 mbp 是不是散热很差呀? 做了个 Menu 小工具,限制 Mac 充电上限,保护电池健康 掐指一算从去年 12 月开始 ai 编程我已经做了 8 个项目,未来希望再发个手机和游戏应用 苹果 macOS 27 将彻底放弃 Intel Mac watch 配对新手机究竟如何恢复最新备份? apple 以旧换新可以叠加 Epp 吗 Mac 如何阻止软件自动更新? 这种港区(HKD)Apple store 礼品卡能不能用于买 iPhone ? Apple 地图规划出了“不存在”的线路 想入 iPad Pro AirPods2 pro 充不上电求助 请问现在 Apple ID 土区注册问题 mac 连接有线音响,看视频总是前几秒没声音 iPhone 16 Pro 玩 LOLM 掉帧咋办? 最近入手的一些 Macbook 分享,购买建议(13 寸 2015 Pro, 13 寸 2020 Pro M1) AirPods2 电池电量不足,大家是否换过?是否有推荐的店铺?
在测试 iOS 18.4 的默认翻译功能时遇到问题
E4son · 2025-04-02 · via V2EX - Apple

问题描述

我在 Xcode 测试 iOS 18.4 新出的 Translation Provider ,按照 官方文档 添加了 entitlement 、access key 、app extension ,并创建了一个简单的 UI 。
但是启动 App 时出现报错。我是刚接触 iOS 开发没多久,麻烦大家帮忙看看是不是哪里配置有问题。

疑问点

  1. 日志中 Invalid placeholder attributesFailed to create promise 具体指什么?

  2. 是不是 entitlement 或者 Info.plist 的某些配置有问题?

  3. 这种问题一般该怎么排查?

希望有经验的朋友帮忙看看,非常感谢! 🙏

Translation Provider

错误日志

Simulator device failed to install the application.
Domain: IXErrorDomain
Code: 2
Failure Reason: Invalid placeholder attributes.
User Info: {
    DVTErrorCreationDateKey = "2025-04-02 04:04:12 +0000";
    FunctionName = "+[IXPlaceholder _placeholderForBundle:client:withParent:installType:metadata:placeholderType:mayBeDeltaPackage:isFromSerializedPlaceholder:error:]";
    IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher;
    SimCallingSelector = "installApplication:withOptions:error:";
    SourceFileLine = 981;
}
--
Failed to create app extension placeholder for /Users/eddiepeng/Library/Developer/Xcode/DerivedData/ExtensionTest-dceeplqjptdufuaucwddasmwjwxd/Build/Products/Debug-iphonesimulator/ExtensionTest.app/PlugIns/TranslationExtensionTest.appex
Domain: IXErrorDomain
Code: 2
Failure Reason: Failed to create promise.
User Info: {
    FunctionName = "+[IXPlaceholder _placeholderForBundle:client:withParent:installType:metadata:placeholderType:mayBeDeltaPackage:isFromSerializedPlaceholder:error:]";
    SourceFileLine = 981;
}
--
Failed to set placeholder attributes top.delta17.ExtensionTest.TranslationExtensionTest
Domain: IXErrorDomain
Code: 2
Failure Reason: Failed to create promise.
User Info: {
    FunctionName = "+[IXPlaceholder _placeholderForBundle:client:withParent:installType:metadata:placeholderType:mayBeDeltaPackage:isFromSerializedPlaceholder:error:]";
    SourceFileLine = 818;
}
--
extensionDictionary must be set in placeholder attributes for an app extension placeholder
Domain: IXErrorDomain
Code: 17
Failure Reason: Invalid placeholder attributes.
User Info: {
    FunctionName = "-[IXPlaceholder setPlaceholderAttributes:error:]";
    SourceFileLine = 1999;
}
--

Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_identifier" = "FE4AA28E-B010-423E-9D5E-FFF66953A896";
    "device_model" = "iPhone17,2";
    "device_osBuild" = "18.4 (22E238)";
    "device_platform" = "com.apple.platform.iphonesimulator";
    "device_thinningType" = "iPhone17,2";
    "dvt_coredevice_version" = "443.19";
    "dvt_coresimulator_version" = "1010.10";
    "dvt_mobiledevice_version" = "1784.102.1";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = arm64;
    "operation_duration_ms" = 38;
    "operation_errorCode" = 2;
    "operation_errorDomain" = IXErrorDomain;
    "operation_errorWorker" = IDELaunchiPhoneSimulatorLauncher;
    "operation_name" = IDERunOperationWorkerGroup;
    "param_debugger_attachToExtensions" = 0;
    "param_debugger_attachToXPC" = 1;
    "param_debugger_type" = 3;
    "param_destination_isProxy" = 0;
    "param_destination_platform" = "com.apple.platform.iphonesimulator";
    "param_diag_113575882_enable" = 0;
    "param_diag_MainThreadChecker_stopOnIssue" = 0;
    "param_diag_MallocStackLogging_enableDuringAttach" = 0;
    "param_diag_MallocStackLogging_enableForXPC" = 1;
    "param_diag_allowLocationSimulation" = 1;
    "param_diag_checker_tpc_enable" = 1;
    "param_diag_gpu_frameCapture_enable" = 0;
    "param_diag_gpu_shaderValidation_enable" = 0;
    "param_diag_gpu_validation_enable" = 0;
    "param_diag_guardMalloc_enable" = 0;
    "param_diag_memoryGraphOnResourceException" = 0;
    "param_diag_mtc_enable" = 1;
    "param_diag_queueDebugging_enable" = 1;
    "param_diag_runtimeProfile_generate" = 0;
    "param_diag_sanitizer_asan_enable" = 0;
    "param_diag_sanitizer_tsan_enable" = 0;
    "param_diag_sanitizer_tsan_stopOnIssue" = 0;
    "param_diag_sanitizer_ubsan_enable" = 0;
    "param_diag_sanitizer_ubsan_stopOnIssue" = 0;
    "param_diag_showNonLocalizedStrings" = 0;
    "param_diag_viewDebugging_enabled" = 1;
    "param_diag_viewDebugging_insertDylibOnLaunch" = 1;
    "param_install_style" = 2;
    "param_launcher_UID" = 2;
    "param_launcher_allowDeviceSensorReplayData" = 0;
    "param_launcher_kind" = 0;
    "param_launcher_style" = 0;
    "param_launcher_substyle" = 0;
    "param_runnable_appExtensionHostRunMode" = 0;
    "param_runnable_productType" = "com.apple.product-type.application";
    "param_structuredConsoleMode" = 1;
    "param_testing_launchedForTesting" = 0;
    "param_testing_suppressSimulatorApp" = 0;
    "param_testing_usingCLI" = 0;
    "sdk_canonicalName" = "iphonesimulator18.4";
    "sdk_osVersion" = "18.4";
    "sdk_variant" = iphonesimulator;
}
--


System Information

macOS Version 15.3.2 (Build 24D81)
Xcode 16.3 (23785) (Build 16E140)
Timestamp: 2025-04-02T12:04:12+08:00