Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIDemoApp.app does not contain a valid Info.plist, so it cannot be installed on iPhone X #58

Open
DRybochkin opened this issue Jan 25, 2022 · 8 comments

Comments

@DRybochkin
Copy link

Details

Unable to install “UIDemoApp”
Domain: com.apple.platform.iphoneos
Code: -1
Recovery Suggestion: UIDemoApp.app does not contain a valid Info.plist, so it cannot be installed on iPhone X

(“CFBundleExecutable” specifies a file that is not executable)
User Info: {
DVTErrorCreationDateKey = "2022-01-25 22:05:40 +0000";
IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
}

Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
"device_model" = "iPhone10,6";
"device_osBuild" = "15.1 (19B74)";
"device_platform" = "com.apple.platform.iphoneos";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 1;
"launchSession_targetArch" = arm64;
"operation_duration_ms" = 251;
"operation_errorCode" = "-1";
"operation_errorDomain" = "com.apple.platform.iphoneos";
"operation_errorWorker" = IDEInstalliPhoneLauncher;
"operation_name" = IDEiPhoneRunOperationWorkerGroup;
"param_consoleMode" = 0;
"param_debugger_attachToExtensions" = 0;
"param_debugger_attachToXPC" = 1;
"param_debugger_type" = 5;
"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_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" = 0;
"param_launcher_substyle" = 0;
"param_runnable_appExtensionHostRunMode" = 0;
"param_runnable_productType" = "com.apple.product-type.application";
"param_runnable_swiftVersion" = "5.5.2";
"param_runnable_type" = 2;
"param_testing_launchedForTesting" = 0;
"param_testing_suppressSimulatorApp" = 0;
"param_testing_usingCLI" = 0;
"sdk_canonicalName" = "iphoneos15.2";
"sdk_osVersion" = "15.2";
"sdk_variant" = iphoneos;
}

System Information

macOS Version 12.1 (Build 21C52)
Xcode 13.2.1 (19586) (Build 13C100)
Timestamp: 2022-01-26T01:05:40+03:00

@DRybochkin
Copy link
Author

the app launch fine on the simulator

@DRybochkin
Copy link
Author

image

@polac24
Copy link
Collaborator

polac24 commented Jan 26, 2022

Does it install if you comment out xcremotecache({..})? XCRemoteCache doesn't touch anything related to Info.plist`.

@DRybochkin
Copy link
Author

yes without xcremotecache it installs

@polac24
Copy link
Collaborator

polac24 commented Jan 27, 2022

Can you compare Info.plist in both cases? It could be a red herring as we don't touch Info.plist.

@DRybochkin
Copy link
Author

DRybochkin commented Jan 28, 2022

there are no changes in info.plist, but the project does not launch on the device

https://github.com/DRybochkin/TestXCRC
Link to the test project where the error is reproduced

@polac24
Copy link
Collaborator

polac24 commented Apr 28, 2022

Thanks for a sample project, I was able to reproduce it.
The Zip dependency doesn't store permissions, so the unzipped Mach-O file (TestXC) is not an executable and a hardware installer complains about an invalid file.

Created a fix on a third-party dependency: marmelroy/Zip#234

@trilliwon
Copy link

trilliwon commented Sep 5, 2022

I got same issue. My solution is add a build phase script with
chmod +x ${BUILT_PRODUCTS_DIR}/${TARGET_NAME}.app/${TARGET_NAME}
at end of build phase list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants