模拟器文件交互:“操作无法完成。参数无效-参数无效”

时间:2019-09-05 00:48:02

标签: ios xcode ios-simulator

尝试将文件添加到模拟器时,出现以下错误:

The operation couldn't be completed. Invalid argument

Invalid argument

enter image description here

当尝试通过Safari下载文件并使用共享将文件保存到文件时,UI不会执行任何操作,但是系统日志会显示:

com.apple.CoreSimulator.SimDevice.8496622D-825E-43EB-939E-04D9DDB548CB[72232] (com.apple.xpc.launchd.oneshot.0x10000000.SimulatorBridge[72268]): Service exited due to SIGABRT

将文件手动放入模拟器目录并尝试打开它们时,会发生另一种SIGABRT。它们不生成预览。不适用于文本文件,图像或视频。最初,我无法打开应用程序中的文件。

系统日志通常如下所示:

com.apple.CoreSimulator.SimDevice.8496622D-825E-43EB-939E-04D9DDB548CB[72232] (com.apple.intents.intents-helper): Unknown key for Boolean: EnableTransactions
com.apple.CoreSimulator.SimDevice.8496622D-825E-43EB-939E-04D9DDB548CB[72232] (com.apple.intents.intents-helper): Unknown key for Boolean: EnablePressuredExit
com.apple.CoreSimulator.SimDevice.8496622D-825E-43EB-939E-04D9DDB548CB[72232] (com.apple.xpc.launchd.domain.pid.SharingXPCHelper.73009): com.apple.photos.ImageConversionService (lint): XPC Service Info.plist is missing XPCService dictionary
com.apple.CoreSimulator.SimDevice.8496622D-825E-43EB-939E-04D9DDB548CB[72232] (com.apple.xpc.launchd.domain.pid.SharingXPCHelper.73009): com.apple.photos.VideoConversionService (lint): XPC Service Info.plist is missing XPCService dictionary
com.apple.CoreSimulator.SimDevice.8496622D-825E-43EB-939E-04D9DDB548CB[72232] (com.apple.textkit.nsattributedstringagent): Unknown key for Boolean: EnableTransactions
com.apple.CoreSimulator.SimDevice.8496622D-825E-43EB-939E-04D9DDB548CB[72232] (com.apple.textkit.nsattributedstringagent): Unknown key for Boolean: EnablePressuredExit
com.apple.CoreSimulator.SimDevice.8496622D-825E-43EB-939E-04D9DDB548CB[72232] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnableTransactions
com.apple.CoreSimulator.SimDevice.8496622D-825E-43EB-939E-04D9DDB548CB[72232] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnablePressuredExit
com.apple.CoreSimulator.SimDevice.8496622D-825E-43EB-939E-04D9DDB548CB[72232] (com.apple.xpc.launchd.domain.pid.SharingXPCHelper.73009): Failed to bootstrap path: path = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/MediaConversionService.framework/XPCServices/com.apple.photos.ImageConversionService.xpc, error = 107: Malformed bundle
com.apple.CoreSimulator.SimDevice.8496622D-825E-43EB-939E-04D9DDB548CB[72232] (com.apple.xpc.launchd.domain.pid.SharingXPCHelper.73009): Failed to bootstrap path: path = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/MediaConversionService.framework/XPCServices/com.apple.photos.VideoConversionService.xpc, error = 107: Malformed bundle
com.apple.CoreSimulator.SimDevice.8496622D-825E-43EB-939E-04D9DDB548CB[72232] (com.apple.AnnotationKit.MigratorService): Unknown key for Boolean: EnableTransactions
com.apple.CoreSimulator.SimDevice.8496622D-825E-43EB-939E-04D9DDB548CB[72232] (com.apple.AnnotationKit.MigratorService): Unknown key for Boolean: EnablePressuredExit

[[A lot more "Unknown key for Boolean: Enable..." and some more errors for Image/Video Conversion]]

我尝试过重置模拟器,更新Xcode,甚至使用AppCleaner完全擦除每个与Xcode相关的文件并重新安装。它仍然出现在每个模拟设备中。

编辑

我实际上擦除了我的整个计算机,并且问题仍然存在。什么。是的。要去开‽

编辑2 :深入挖掘

我尝试运行旧的开源Textor应用,尝试创建文档时遇到类似的错误

(缩进)

Textor[28964:966149] [DocumentManager]
Cannot create urlWrapper for url
    file:///Users/hans/Library/Developer/CoreSimulator/Devices/7EA9AEF5-F208-4BA1-8F61-F5F95CC15A47/data/Containers/Data/Application/A8736BA5-92DF-45A9-8622-CD312C68B403/tmp/Untitled.txt.
    error Error Domain=NSPOSIXErrorDomain
        Code=22
            "couldn't issue sandbox extension com.apple.app-sandbox.read-write 
            for '/Users/hans/Library/Developer/CoreSimulator/Devices/7EA9AEF5-F208-4BA1-8F61-F5F95CC15A47/data/Containers/Data/Application/A8736BA5-92DF-45A9-8622-CD312C68B403/tmp/Untitled.txt':
            Invalid argument"
        UserInfo={
            NSDescription=
               couldn't issue sandbox extension com.apple.app-sandbox.read-write for
               '/Users/hans/Library/Developer/CoreSimulator/Devices/7EA9AEF5-F208-4BA1-8F61-F5F95CC15A47/data/Containers/Data/Application/A8736BA5-92DF-45A9-8622-CD312C68B403/tmp/Untitled.txt':
               Invalid argument}.

0 个答案:

没有答案