创建widget运行崩溃

崩溃信息

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_NSXPCDistantObject ___nsx_pingHost:]: unrecognized selector sent to instance 0x600000865720'
*** First throw call stack:
(
	0   CoreFoundation                      0x0000000112041fba __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x000000011055aff5 objc_exception_throw + 48
	2   CoreFoundation                      0x0000000112050d2f +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
	3   CoreFoundation                      0x00000001120464cf ___forwarding___ + 1455
	4   CoreFoundation                      0x00000001120487a8 _CF_forwarding_prep_0 + 120
	5   ExtensionKit                        0x00000001262134ab -[EXExtensionContextImplementation _willPerformHostCallback:] + 172
	6   ExtensionKit                        0x00000001262159f1 __112-[EXConcreteExtensionContextVendor _beginRequestWithExtensionItems:listenerEndpoint:withContextUUID:completion:]_block_invoke + 988
	7   libdispatch.dylib                   0x00000001187e770d _dispatch_call_block_and_release + 12
	8   libdispatch.dylib                   0x00000001187e88df _dispatch_client_callout + 8
	9   libdispatch.dylib                   0x00000001187eee15 _dispatch_lane_serial_drain + 715
	10  libdispatch.dylib                   0x00000001187ef98c _dispatch_lane_invoke + 400
	11  libdispatch.dylib                   0x00000001187f9f81 _dispatch_workloop_worker_thread + 772
	12  libsystem_pthread.dylib             0x0000000118cb64c0 _pthread_wqthread + 314
	13  libsystem_pthread.dylib             0x0000000118cb5493 start_wqthread + 15
)
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_NSXPCDistantObject ___nsx_pingHost:]: unrecognized selector sent to instance 0x600000865720'
_LSContextInitReturningError() failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x15dde658 ed2a1267 ab2496d7 34f186ad ... ec431c65 02d68f35 }, _LSLine=409, WrongSimulatorHash={length = 32, bytes = 0xaf25dda9 e45baa35 610eaabd 5bc09901 ... 9cbe61f3 81d7b9d9 }}
terminating with uncaught exception of type NSException
CoreSimulator 757.5 - Device: iPhone 11 (9E9D9755-A28B-4864-863A-1D22E0DD6997) - Runtime: iOS 14.5 (18E182) - DeviceType: iPhone 11

预览出现错误

RemoteHumanReadableError

ProcessError: Failed to launch widget extension: The operation couldn’t be completed. (CHSErrorDomain error 1050.)

解决方法

设置Containing App的Build Phases配置,勾选Copy only when installing
在这里插入图片描述

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值