Naituw / IPAPatch

Patch iOS Apps, The Easy Way, Without Jailbreak.
MIT License
4.74k stars 708 forks source link

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

Open hupengfei-hinterstellar opened 4 years ago

hupengfei-hinterstellar commented 4 years ago

你好, 是苹果的最新系统或是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 commented 3 years ago

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

paradiseduo commented 3 years ago

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

hupengfei-hinterstellar commented 3 years ago

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

确实可以,thx!

EtherealYi commented 3 years ago

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

确实可以,thx!

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

silentcloud commented 3 years ago

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

paradiseduo commented 3 years ago

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

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

SummerYP commented 3 years ago

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

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

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

paradiseduo commented 3 years ago

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

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

starFelix commented 2 years ago

修改 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 commented 1 year ago

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

samova commented 8 months ago

大家可以看看我的解决办法https://github.com/Naituw/IPAPatch/issues/95#issuecomment-1961348000

bossleem commented 7 months ago

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"