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

项目无法在安装到手机 #71

Open
hupengfei-hinterstellar opened this issue Nov 6, 2020 · 12 comments
Open

项目无法在安装到手机 #71

hupengfei-hinterstellar opened this issue Nov 6, 2020 · 12 comments

Comments

@hupengfei-hinterstellar
Copy link

你好, 是苹果的最新系统或是Xcode12封杀了这种安装方式?还是我用的姿势不对?
以前用Xcode11还能安装的项目 现在无法安装, 下载的Dome也是。没有报错但build success 之后会提示无法安装。 换了几个apple id 仍然不行。

image
Details

Unable to install "IPAPatch-DummyApp"
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 0x000000012535093f DTDKCreateNSErrorFromAMDErrorCode + 220
1 DTDeviceKitBase 0x000000012538f124 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
2 DVTFoundation 0x000000010a1b5b33 DVTInvokeWithStrongOwnership + 71
3 DTDeviceKitBase 0x000000012538ee65 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
4 IDEiOSSupportCore 0x00000001251ffd28 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3513
5 DVTFoundation 0x000000010a2e429a DVT_CALLING_CLIENT_BLOCK + 7
6 DVTFoundation 0x000000010a2e5ebc __DVTDispatchAsync_block_invoke + 1191
7 libdispatch.dylib 0x00007fff6bb6a6c4 _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x00007fff6bb6b658 _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007fff6bb70c44 _dispatch_lane_serial_drain + 597
10 libdispatch.dylib 0x00007fff6bb715d6 _dispatch_lane_invoke + 363
11 libdispatch.dylib 0x00007fff6bb7ac09 _dispatch_workloop_worker_thread + 596
12 libsystem_pthread.dylib 0x00007fff6bdc5a3d _pthread_wqthread + 290
13 libsystem_pthread.dylib 0x00007fff6bdc4b77 start_wqthread + 15
);
}

System Information

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

@Lazyloadingg
Copy link

是的我也是这样,之前一直可以安装的ipa现在也不行了

@paradiseduo
Copy link

新建一个Test APP,真机运行,然后把IPAPatch的证书跟bundleID改成Test APP的。

@hupengfei-hinterstellar
Copy link
Author

新建一个Test APP,真机运行,然后把IPAPatch的证书跟bundleID改成Test APP的。

确实可以,thx!

@EtherealYi
Copy link

新建一个Test APP,真机运行,然后把IPAPatch的证书跟bundleID改成Test APP的。

确实可以,thx!

我尝试下,还是不行,我的是Xcode12.3 iPhone7可以安装,但是换成XS就不行了。

@silentcloud
Copy link

iphone12 mini ios 14.3 上面的方式试了也不行

@paradiseduo
Copy link

iphone12 mini ios 14.3 上面的方式试了也不行

我在iPhone 12 iOS14.4上试了,是可以的。
image

@SummerYP
Copy link

iphone12 mini ios 14.3 上面的方式试了也不行

我在iPhone 12 iOS14.4上试了,是可以的。
image

你这个是xcode哪个版本,我xcode12.2试了换bundle id和不同的手机,都不行

@paradiseduo
Copy link

paradiseduo commented Mar 18, 2021

你这个是xcode哪个版本,我xcode12.2试了换bundle id和不同的手机,都不行

xcode12.4。
手机系统都写着14.4了。。。

@starFelix
Copy link

修改 patch 脚本, 在需要 codesign 的地方补上这个参数 --preserve-metadata=entitlements
比如
Modify the patch file. add argument --preserve-metadata=entitlements after codesign command.
for example:

/usr/bin/codesign --preserve-metadata=entitlements --force --sign "$EXPANDED_CODE_SIGN_IDENTITY" "$TARGET_APP_PATH/Dylibs/"*
/usr/bin/codesign --preserve-metadata=entitlements --force --sign  "$EXPANDED_CODE_SIGN_IDENTITY" "$TARGET_APP_FRAMEWORKS_PATH/"*
/usr/bin/codesign --preserve-metadata=entitlements --force --sign "$EXPANDED_CODE_SIGN_IDENTITY" --timestamp=none "$TARGET_APP_PATH"

@zyfu0000
Copy link

not worked in Mac OS 13.4.1 (c) with Xcode 14.2

@samova
Copy link

samova commented Feb 23, 2024

大家可以看看我的解决办法#95 (comment)

@bossleem
Copy link

add the script below before the line echo "TEMP_APP_PATH: $TEMP_APP_PATH"
example:

cp "$HOME/Library/MobileDevice/Provisioning Profiles/$EXPANDED_PROVISIONING_PROFILE.mobileprovision" "$TEMP_APP_PATH/embedded.mobileprovision"
echo "TEMP_APP_PATH: $TEMP_APP_PATH"

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

10 participants