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

Unable to install "App" using SPM #61

Closed
andr-ec opened this issue Nov 10, 2020 · 5 comments
Closed

Unable to install "App" using SPM #61

andr-ec opened this issue Nov 10, 2020 · 5 comments

Comments

@andr-ec
Copy link

andr-ec commented Nov 10, 2020

SDK version 1.10
Xcode Version 12.1 (12A7403)
Device iPhone Xs

After adding Bugfender via SPM as indicated in the readme, while trying to run an app on a device xcode will always show Unable to install "App".
This only happens with Bugfender, any other static framework added through SPM will work.

example repo: https://github.com/acarrera94/bugfenderIssue

Console output:
default 14:15:41.716058-0700 installd 0x16b23f000 +[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]: 77: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.4IIdZx/extracted/bugfendertest.app/Frameworks/BugfenderSDK.framework : 0xe8008015 (A valid provisioning profile for this executable was not found.)

Full log:

Details

Unable to install "bugfendertest"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620395
--
A valid provisioning profile for this executable was not found.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620395
User Info: {
    DVTRadarComponentKey = 487925;
    MobileDeviceErrorCode = "(0xE8008015)";
    "com.apple.dtdevicekit.stacktrace" = (
	0   DTDeviceKitBase                     0x000000012204f93f DTDKCreateNSErrorFromAMDErrorCode + 220
	1   DTDeviceKitBase                     0x000000012208e124 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
	2   DVTFoundation                       0x00000001057a5b33 DVTInvokeWithStrongOwnership + 71
	3   DTDeviceKitBase                     0x000000012208de65 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
	4   IDEiOSSupportCore                   0x0000000121efed28 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3513
	5   DVTFoundation                       0x00000001058d429a __DVT_CALLING_CLIENT_BLOCK__ + 7
	6   DVTFoundation                       0x00000001058d5ebc __DVTDispatchAsync_block_invoke + 1191
	7   libdispatch.dylib                   0x00007fff6e3056c4 _dispatch_call_block_and_release + 12
	8   libdispatch.dylib                   0x00007fff6e306658 _dispatch_client_callout + 8
	9   libdispatch.dylib                   0x00007fff6e30bc44 _dispatch_lane_serial_drain + 597
	10  libdispatch.dylib                   0x00007fff6e30c5d6 _dispatch_lane_invoke + 363
	11  libdispatch.dylib                   0x00007fff6e315c09 _dispatch_workloop_worker_thread + 596
	12  libsystem_pthread.dylib             0x00007fff6e560a3d _pthread_wqthread + 290
	13  libsystem_pthread.dylib             0x00007fff6e55fb77 start_wqthread + 15
);
}
--


System Information

macOS Version 10.15.7 (Build 19H2)
Xcode 12.1 (17222)

These issues seem to be related:
firebase/firebase-ios-sdk#6492
firebase/firebase-ios-sdk#6472

This might be related as well:
https://forums.swift.org/t/swiftpm-binarytarget-dependency-and-code-signing/38953/40

The only workaround that I've found currently is to manually drag the framework into the project as mentioned in #57

@RubenVot
Copy link
Contributor

Hi @acarrera94 !
The sample project you shared doesn't have a Xcode project file 😅
Anyway, thanks to your comments we were able to reproduce the issue in another computer. Looks like there is some issue with the certificates. It works when you manually drop the framework to the libraries because by default Xcode will choose "embbed and sign" option.

We are taking a look to this. Thanks a lot for your help.

@andr-ec
Copy link
Author

andr-ec commented Nov 11, 2020 via email

@RubenVot
Copy link
Contributor

Unfortunately this is a bug in Xcode 😒 https://bugs.swift.org/browse/SR-13343
Testing Xcode beta 12.3, it is not solved yet, we might need to publish a workaround meanwhile.

@RubenVot
Copy link
Contributor

@acarrera94 we have added a recommended workaround in the readme, in case you wan to use it

@jgimenez
Copy link
Member

Closing due to inactivity

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