Telegram-iOS icon indicating copy to clipboard operation
Telegram-iOS copied to clipboard

Unable to distribute with extensions

Open reitowo opened this issue 5 years ago • 12 comments

When I 'disableExtension' to export an xcode project, it can be build and installed on my device, but when I enable extensions it will not install and shows:

Details

Unable to install "Telegram"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620395
User Info: {
    IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
}
--
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                     0x00000001750c2ff8 DTDKCreateNSErrorFromAMDErrorCode + 272
	1   DTDeviceKitBase                     0x00000001750fe550 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 160
	2   DVTFoundation                       0x00000001066600d8 DVTInvokeWithStrongOwnership + 76
	3   DTDeviceKitBase                     0x00000001750fe2a0 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1312
	4   IDEiOSSupportCore                   0x0000000174fd1be4 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 2908
	5   DVTFoundation                       0x000000010678a238 __DVT_CALLING_CLIENT_BLOCK__ + 16
	6   DVTFoundation                       0x000000010678b824 __DVTDispatchAsync_block_invoke + 564
	7   libdispatch.dylib                   0x0000000188f00e60 _dispatch_call_block_and_release + 32
	8   libdispatch.dylib                   0x0000000188f02bac _dispatch_client_callout + 20
	9   libdispatch.dylib                   0x0000000188f0a330 _dispatch_lane_serial_drain + 672
	10  libdispatch.dylib                   0x0000000188f0aea4 _dispatch_lane_invoke + 392
	11  libdispatch.dylib                   0x0000000188f15708 _dispatch_workloop_worker_thread + 656
	12  libsystem_pthread.dylib             0x00000001890bd5b0 _pthread_wqthread + 288
	13  libsystem_pthread.dylib             0x00000001890bc2c4 start_wqthread + 8
);
}
--

Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_model" = "iPad8,5";
    "device_osBuild" = "15.1 (19B74)";
    "device_platform" = "com.apple.platform.iphoneos";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = arm64;
    "operation_duration_ms" = 27207;
    "operation_errorCode" = "-402620395";
    "operation_errorDomain" = "com.apple.dt.MobileDeviceErrorDomain";
    "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.1";
    "param_runnable_type" = 2;
    "param_testing_launchedForTesting" = 0;
    "param_testing_suppressSimulatorApp" = 0;
    "param_testing_usingCLI" = 0;
    "sdk_canonicalName" = "iphoneos15.0";
    "sdk_osVersion" = "15.0";
    "sdk_variant" = iphoneos;
}
--


System Information

macOS Version 12.0.1 (Build 21A559)
Xcode 13.1 (19466) (Build 13A1030d)
Timestamp: 2021-12-02T00:26:59+08:00

Same with directly build, which also includes extensions. I don't know what's wrong. I've already created several provisioning profiles.

reitowo avatar Dec 01 '21 16:12 reitowo

There appears to be something wrong with the generated provisioning profiles.

ali-fareed avatar Dec 02 '21 07:12 ali-fareed

@ali-fareed Hi! Please help as I already tried every approach I know. What I've done:

  • Generate bunch of ID (com.my.bundle, com.my.bundle.BroadcastUpload, com.my.bundle.SiriIntents, etc)
  • Generate a Apple Distribution certificate
  • Generate Ad hoc distribution provisioning profiles foreach identifiers generated above, selecting the distribution certificate above, and select my devices.
  • Download each of them and replace them in provisioning folder.
  • Run Make.py clean and build, and drag the generated ipa to my iPad in Finder. It won't install due to unable to verify integrity, I also tried cydia inpactor and it failed with 'a valid provisioning profile was not found' at Application.App/PlugIns/BroadcastUploadExtension.appex
  • I'm sure these provisioning profiles exists on my iPad

reitowo avatar Dec 02 '21 07:12 reitowo

Hi! Please help as I already tried every approach I know. What I've done:

  • Generate bunch of ID (com.my.bundle, com.my.bundle.BroadcastUpdate, com.my.bundle.SiriIntents, etc)
  • Generate a Apple Distribution certificate
  • Generate Ad hoc distribution provisioning profiles foreach identifiers generated above, selecting the distribution certificate above, and select my devices.
  • Download each of them and replace them in provisioning folder.
  • Run Make.py clean and build, and drag the generated ipa to my iPad in Finder. It won't install due to unable to verify integrity, I also tried cydia inpactor and it failed with 'a valid provisioning profile was not found' at Application.App/PlugIns/BroadcastUploadExtension.appex

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2021年12月02日 15:09 | | 收件人 | @.> | | 抄送至 | @.@.> | | 主题 | Re: [TelegramMessenger/Telegram-iOS] Unable to distribute with extensions (Issue #670) |

There appears to be something wrong with the generated provisioning profiles.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

reitowo avatar Dec 02 '21 07:12 reitowo

@cnSchwarzer did this help??I am also facing same issue.In my case the app is running on device using dev profile and simulators but not using adhoc release

sreedeeppaul avatar Jan 07 '22 05:01 sreedeeppaul

楼主解决了打包ipa的问题了么?

liujia1993 avatar Jun 29 '22 07:06 liujia1993

English please

楼主解决了打包ipa的问题了么?

shivanraptor avatar Jun 29 '22 07:06 shivanraptor

Guys, in case you cannot export a production IPA, you should always use the bazel command in README to generate. The IPA is a production IPA and cannot be installed to App directly. If you want to install and debug the App, you can upload to App Store and use TestFlight to try out your app.

shivanraptor avatar Jun 29 '22 07:06 shivanraptor

楼主解决了打包ipa的问题了么? @liujia1993 Yes

reitowo avatar Jun 29 '22 07:06 reitowo

能留个联系方式质询下打包的问题么?

liujia1993 avatar Jun 29 '22 11:06 liujia1993

Can you help me out When I perform python3 build-system/Make/Make.py --overrideXcodeVersion --bazel="$HOME/bazel-dist/bazel" --cacheDir="$HOME/telegram-bazel-cache" build --configurationPath="$HOME/telegram-configuration" --buildNumber=2300 --configuration=debug_universal

ERROR: /Users/da/Telegram-iOS/Telegram/BUILD:1886:16: ProcessEntitlementsFiles Telegram/Telegram_entitlements.entitlements failed: (Exit 1): plisttool failed: error executing command (cd /private/var/tmp/_bazel_da/90132f016756581685f8aa3261cd2681/execroot/main &&
exec env -
APPLE_SDK_PLATFORM=iPhoneOS
APPLE_SDK_VERSION_OVERRIDE=15.2
XCODE_VERSION_OVERRIDE=13.2.1.13C100
bazel-out/darwin-opt-exec-2B5CBBC6-ST-8bd7c7db9774/bin/external/build_bazel_rules_apple/tools/plisttool/plisttool bazel-out/applebin_ios-ios_armv7-dbg-ST-2b171abadebf/bin/Telegram/entitlements/Telegramplisttool-control)

Configuration: 059029865a4a66c90fd1237e1595ba41a65b39e5127e4a438812b5fe46b4a398

Execution platform: @local_config_platform//:host

ERROR: Target "//Telegram:Telegram" uses entitlements with a "com.apple.developer.associated-domains" key, but the profile does not support use of this key. Target //Telegram:Telegram failed to build INFO: Elapsed time: 7.574s, Critical Path: 1.05s INFO: 425 processes: 249 disk cache hit, 176 internal.

liujia1993 avatar Jun 30 '22 08:06 liujia1993

@liujia1993 There's an e-mail in my profile

reitowo avatar Jul 03 '22 03:07 reitowo

dont know if it helps - but there's a BUILD directive to export file - including mobileprovision stuff. maybe include here code $HOME/telegram-configuration Screen Shot 2022-08-31 at 11 47 11 am

wweevv-johndpope avatar Aug 31 '22 01:08 wweevv-johndpope