본문 바로가기

SW개발/개발환경

React Native 앱 XCode 빌드 및 실행 중 오류 해결

XCode 에서 빌드 및 실행 중 오류 창

 

React Native 앱을 빌드하고 실행하기 위해 Real Device에 USB 연결 후 실행시 위와 같은 오류가 발생했다.

Unable to install "wisetracker_tester"
Unable to install "wisetracker_tester"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620388
User Info: {
    DVTErrorCreationDateKey = "2024-04-05 09:18:33 +0000";
    IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
}
--
Unable to install "wisetracker_tester"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620388
User Info: {
    IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
}
--
No code signature found.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620388
User Info: {
    DVTRadarComponentKey = 364477;
    MobileDeviceErrorCode = "(0xE800801C)";
    "com.apple.dtdevicekit.stacktrace" = (
	0   DTDeviceKitBase                     0x0000000110707670 DTDKCreateNSErrorFromAMDErrorCode + 300
	1   DTDeviceKitBase                     0x00000001107342e0 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 136
	2   DVTFoundation                       0x000000010655f9bc DVTInvokeWithStrongOwnership + 76
	3   DTDeviceKitBase                     0x0000000110734064 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1168
	4   IDEiOSSupportCore                   0x000000011896341c __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.151 + 2344
	5   DVTFoundation                       0x0000000106670598 __DVT_CALLING_CLIENT_BLOCK__ + 16
	6   DVTFoundation                       0x0000000106670fc0 __DVTDispatchAsync_block_invoke + 152
	7   libdispatch.dylib                   0x00000001a0124750 _dispatch_call_block_and_release + 32
	8   libdispatch.dylib                   0x00000001a01263e8 _dispatch_client_callout + 20
	9   libdispatch.dylib                   0x00000001a012da14 _dispatch_lane_serial_drain + 748
	10  libdispatch.dylib                   0x00000001a012e544 _dispatch_lane_invoke + 380
	11  libdispatch.dylib                   0x00000001a01392d0 _dispatch_root_queue_drain_deferred_wlh + 288
	12  libdispatch.dylib                   0x00000001a0138b44 _dispatch_workloop_worker_thread + 404
	13  libsystem_pthread.dylib             0x00000001a02d300c _pthread_wqthread + 288
	14  libsystem_pthread.dylib             0x00000001a02d1d28 start_wqthread + 8
);
}
--

Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_model" = "iPhone10,5";
    "device_osBuild" = "16.7.7 (20H330)";
    "device_platform" = "com.apple.platform.iphoneos";
    "dvt_coredevice_version" = "355.24";
    "dvt_mobiledevice_version" = "1643.100.58";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = arm64;
    "operation_duration_ms" = 7626;
    "operation_errorCode" = "-402620388";
    "operation_errorDomain" = "com.apple.dt.MobileDeviceErrorDomain";
    "operation_errorWorker" = IDEInstalliPhoneLauncher;
    "operation_name" = IDEiPhoneRunOperationWorkerGroup;
    "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_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" = 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" = "iphoneos17.4";
    "sdk_osVersion" = "17.4";
    "sdk_variant" = iphoneos;
}
--


System Information

macOS Version 14.4.1 (Build 23E224)
Xcode 15.3 (22618) (Build 15E204a)
Timestamp: 2024-04-05T18:18:33+09:00

 

문제 해결방법을 찾아보니 React Native와 관련된 프레임웍, 라이브러리의 Code Sign이 누락된 것으로 검색된다.

 

"Pods_XXX.framework"가 "Embed Without Sign"상태임
"Pods_XXX.framework"를 "Embed & Sign"으로 변경

 

위의 설정을 수정 후 빌드/인스톨이 잘 되었다.