Open tomekfab opened 3 years ago
Have you seen this? https://developer.apple.com/forums/thread/679182
Yup, I did. I've spent a good amount of time trying to research and resolve this before I created this issue. I've tried adding other dependencies to our project via SPM and none of the other caused this problem except this one, I'm not very fluent in SPM since this is the first time I use it, but I was looking into artifacts
in Derived Data and saw that when adding TensorFlowLiteSwift
to our project a TensorFlowLiteC.xcframework
is created in artifacts
, when I added it directly to our project it was automatically added with option Embed & Sign
and I had the same issue, only when I changed it to Do Not Embed
I was able to run our app on device. Not sure if there's anything to make out of this information but I thought it might be relevant somehow
So the issue seems related to https://developer.apple.com/documentation/xcode/using-the-latest-code-signature-format. I tried various workarounds but can not get CodeDirectory v=20400
for TensorFlowLiteC frameworks.
Any updates on this? Thanks!
I got a similar issue. Any updates?
Same issue, building with Xcode 15.2 to iPhone 13 Pro Max running 17.1.2
Domain: com.apple.dt.CoreDeviceError
Code: 3002
User Info: {
DVTErrorCreationDateKey = "2024-01-17 22:10:56 +0000";
IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker;
NSURL = "file:///Users/e132740/Library/Developer/Xcode/DerivedData/FaceDetector-bceouumziwzbfpayidvtgaoooytm/Build/Products/Debug-iphoneos/FaceDetector.app/";
}
--
“FaceDetector” Needs to Be Updated
Domain: IXUserPresentableErrorDomain
Code: 17
Failure Reason: The developer of this app needs to update it to work with this version of iOS.
Recovery Suggestion: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.bi1KAJ/extracted/FaceDetector.app/Frameworks/TensorFlowLiteCMetal.framework : 0xe8008029 (The code signature version is no longer supported.)
--
Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.bi1KAJ/extracted/FaceDetector.app/Frameworks/TensorFlowLiteCMetal.framework : 0xe8008029 (The code signature version is no longer supported.)
Domain: MIInstallerErrorDomain
Code: 13
User Info: {
FunctionName = "+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]";
LegacyErrorString = ApplicationVerificationFailed;
LibMISErrorNumber = "-402620375";
SourceFileLine = 78;
}
--
Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
"device_isCoreDevice" = 1;
"device_model" = "iPhone14,3";
"device_osBuild" = "17.1.2 (21B101)";
"device_platform" = "com.apple.platform.iphoneos";
"dvt_coredevice_version" = "355.7.7";
"dvt_mobiledevice_version" = "1643.40.14.100.2";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 1;
"launchSession_targetArch" = arm64;
"operation_duration_ms" = 3349;
"operation_errorCode" = 17;
"operation_errorDomain" = "com.apple.dt.CoreDeviceError.3002.IXUserPresentableErrorDomain";
"operation_errorWorker" = IDEInstallCoreDeviceWorker;
"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.iphoneos";
"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_memoryGraphOnResourceException" = 0;
"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_stopOnIssue" = 0;
"param_diag_showNonLocalizedStrings" = 0;
"param_diag_viewDebugging_enabled" = 1;
"param_diag_viewDebugging_insertDylibOnLaunch" = 1;
"param_install_style" = 0;
"param_launcher_UID" = 2;
"param_launcher_allowDeviceSensorReplayData" = 0;
"param_launcher_kind" = 0;
"param_launcher_style" = 99;
"param_launcher_substyle" = 8192;
"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" = "iphoneos17.2";
"sdk_osVersion" = "17.2";
"sdk_variant" = iphoneos;
}
--
System Information
macOS Version 13.6 (Build 22G120)
Xcode 15.2 (22503) (Build 15C500b)
Timestamp: 2024-01-17T16:10:56-06:00```
@kewlbear I was able to fix the code-signing shenanigans in TensorFlowLiteC / TensorFlowLiteCCoreML, I have created a repository that has SPM support for TensorFlowLiteC / TensorFlowLiteCCoreML, here's the link for that I'm eventually going to create TensorFlowLiteSwift as well that mirrors the current releases on TensorFlowLiteC, but one step at time.
I have TesnorFlowLiteSwift out, Check it out using this link, It shouldn't have any code signing issues
I tried adding TensorFlowLiteSwift via SPM to our project, beginning a slow transition from carthage, but each time I add this particular lib I'm getting code signing issues and we can't run app on device from Xcode. Xcode version in the report says Xcode 13 but it's the same with Xcode 12.5. Is there anything one can do with this?