ShadowsocksR-Live / iShadowsocksR

ShadowsocksR (SSRoT) client for iOS
GNU General Public License v3.0
574 stars 326 forks source link

编译不通过 #83

Closed vgo4autobot closed 1 year ago

vgo4autobot commented 1 year ago

MacOS 12.6 XCode14 目前编译不通过, Did you forget to declare this file as an output of a script phase or custom build rule which produces it? 报这个错误 也报过:Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's.

vgo4autobot commented 1 year ago

有遇到过的吗?

ssrlive commented 1 year ago

估計是新版 xcode 簽名檢查更嚴格了。可以把更詳細的錯誤信息貼出來。蘋果開發工具對其它環境的開發員從來沒有友好過。

vgo4autobot commented 1 year ago

image 看一下这个错误

ssrlive commented 1 year ago

TodayWidget 的 id 改了嗎?前端程序、後臺服務、今日小掛件 這三個程序的 id都得改。

vgo4autobot commented 1 year ago

都改了 image

ssrlive commented 1 year ago

https://github.com/ShadowsocksR-Live/iShadowsocksR/search?q=com.ssrlive.issr

ssrlive commented 1 year ago

那就不知道了。你把錯誤信息在 google 上搜索一把。看看有啥解。

vgo4autobot commented 1 year ago

你好,我改了一下Build Setting里面的EXCLUDED_ARCHS 这个选项就好了,但是安装真机的是报告说不能install

vgo4autobot commented 1 year ago

Details

Unable to install "iShadowsocksR" Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402653081 Recovery Suggestion: Please check your project settings and ensure that a valid product has been built. User Info: { DVTErrorCreationDateKey = "2023-02-10 05:56:05 +0000"; IDERunOperationFailingWorker = IDEInstalliPhoneLauncher; }

There was an internal API error. Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402653081 User Info: { DVTRadarComponentKey = 261622; MobileDeviceErrorCode = "(0xE8000067)"; "com.apple.dtdevicekit.stacktrace" = ( 0 DTDeviceKitBase 0x0000000114ae4c90 DTDKCreateNSErrorFromAMDErrorCode + 235 1 DTDeviceKitBase 0x0000000114b212ee 90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155 2 DVTFoundation 0x000000010b983e01 DVTInvokeWithStrongOwnership + 71 3 DTDeviceKitBase 0x0000000114b21016 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1409 4 IDEiOSSupportCore 0x00000001162a07a0 118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.301 + 3520 5 DVTFoundation 0x000000010bab9a09 __DVT_CALLING_CLIENT_BLOCK + 7 6 DVTFoundation 0x000000010baba51d DVTDispatchAsync_block_invoke + 196 7 libdispatch.dylib 0x00007ff80038d0cc _dispatch_call_block_and_release + 12 8 libdispatch.dylib 0x00007ff80038e317 _dispatch_client_callout + 8 9 libdispatch.dylib 0x00007ff800394317 _dispatch_lane_serial_drain + 672 10 libdispatch.dylib 0x00007ff800394dfd _dispatch_lane_invoke + 366 11 libdispatch.dylib 0x00007ff80039eeee _dispatch_workloop_worker_thread + 753 12 libsystem_pthread.dylib 0x00007ff800541fd0 _pthread_wqthread + 326 13 libsystem_pthread.dylib 0x00007ff800540f57 start_wqthread + 15 ); }

vgo4autobot commented 1 year ago

这个您遇到过吗?

ssrlive commented 1 year ago

id 沒改乾淨。 你得整體 com.ssrlive.issr 改成 你自己的,還要記得不與 group ID 有違和感。如 vgo.linkv.vpn 就不錯。 建議用文本搜索工具替換。不要在 xcode 裏改。xcode 自作聰明地會搞砸的。

vgo4autobot commented 1 year ago

image 除了这几个 image 这几个的id也要改吧? 有其他联系方式吗?可以加whatapp学习一下

ssrlive commented 1 year ago

image 就這三個

vgo4autobot commented 1 year ago

我都改了呀 image image image

ssrlive commented 1 year ago

image

ssrlive commented 1 year ago

叫你文本替換文本替換

vgo4autobot commented 1 year ago

后面的部分也不能一样吗?

ssrlive commented 1 year ago

對。你得與 group id 匹配。如 group.vgo.linkv.vpn

vgo4autobot commented 1 year ago

还是install不了,编译是没问题了[流泪]

vgo4autobot commented 1 year ago

是不是iOS16太新?

vgo4autobot commented 1 year ago

望指点一下

ssrlive commented 1 year ago

就不知道了。你把你的修改都丟棄,重新用純文本工具替換id 再試一把。再不行我也不知道了,自求多福。

vgo4autobot commented 1 year ago

好吧,你那里xcode14能运行起来吗?

ssrlive commented 1 year ago

我用的是 xcode 12

vgo4autobot commented 1 year ago

好吧,我系统装不了xcode 12,macOS太高了

ssrlive commented 1 year ago

kkkk

hhhhh

这是我修改的 patch 文件。自己用 Sublime Text 替换修改吧。

diff --git a/PacketTunnel/PacketTunnel.entitlements b/PacketTunnel/PacketTunnel.entitlements
index c8ca4e6..317db23 100644
--- a/PacketTunnel/PacketTunnel.entitlements
+++ b/PacketTunnel/PacketTunnel.entitlements
@@ -10,7 +10,7 @@
        </array>
        <key>com.apple.security.application-groups</key>
        <array>
-               <string>group.com.ssrlive.issr</string>
+               <string>group.com.mycompany.vpnapp</string>
        </array>
        <key>keychain-access-groups</key>
        <array>
diff --git a/TodayWidget/TodayWidget.entitlements b/TodayWidget/TodayWidget.entitlements
index c8ca4e6..317db23 100644
--- a/TodayWidget/TodayWidget.entitlements
+++ b/TodayWidget/TodayWidget.entitlements
@@ -10,7 +10,7 @@
        </array>
        <key>com.apple.security.application-groups</key>
        <array>
-               <string>group.com.ssrlive.issr</string>
+               <string>group.com.mycompany.vpnapp</string>
        </array>
        <key>keychain-access-groups</key>
        <array>
diff --git a/iShadowsocksR.xcodeproj/project.pbxproj b/iShadowsocksR.xcodeproj/project.pbxproj
index ac78279..d942bc1 100644
--- a/iShadowsocksR.xcodeproj/project.pbxproj
+++ b/iShadowsocksR.xcodeproj/project.pbxproj
@@ -3796,7 +3796,7 @@
                                        "@rpath/Frameworks",
                                );
                                OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" -DDEBUG";
-                               PRODUCT_BUNDLE_IDENTIFIER = com.ssrlive.issr;
+                               PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.vpnapp;
                                PRODUCT_NAME = "$(TARGET_NAME)";
                                PROVISIONING_PROFILE = "";
                                PROVISIONING_PROFILE_SPECIFIER = "";
@@ -3842,7 +3842,7 @@
                                        "@executable_path/Frameworks",
                                        "@rpath/Frameworks",
                                );
-                               PRODUCT_BUNDLE_IDENTIFIER = com.ssrlive.issr;
+                               PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.vpnapp;
                                PRODUCT_NAME = "$(TARGET_NAME)";
                                PROVISIONING_PROFILE = "";
                                PROVISIONING_PROFILE_SPECIFIER = "";
@@ -3878,7 +3878,7 @@
                                        "@executable_path/Frameworks",
                                        "@executable_path/../../Frameworks",
                                );
-                               PRODUCT_BUNDLE_IDENTIFIER = "com.ssrlive.issr.$(TARGET_NAME)";
+                               PRODUCT_BUNDLE_IDENTIFIER = "com.mycompany.vpnapp.$(TARGET_NAME)";
                                PRODUCT_NAME = "$(TARGET_NAME)";
                                PROVISIONING_PROFILE = "";
                                PROVISIONING_PROFILE_SPECIFIER = "";
@@ -3911,7 +3911,7 @@
                                        "@executable_path/Frameworks",
                                        "@executable_path/../../Frameworks",
                                );
-                               PRODUCT_BUNDLE_IDENTIFIER = "com.ssrlive.issr.$(TARGET_NAME)";
+                               PRODUCT_BUNDLE_IDENTIFIER = "com.mycompany.vpnapp.$(TARGET_NAME)";
                                PRODUCT_NAME = "$(TARGET_NAME)";
                                PROVISIONING_PROFILE = "";
                                PROVISIONING_PROFILE_SPECIFIER = "";
@@ -3963,7 +3963,7 @@
                                        "$(PROJECT_DIR)/PacketTunnel/Shadowsocks/libsodium-ios/lib",
                                        "$(PROJECT_DIR)/PacketTunnel",
                                );
-                               PRODUCT_BUNDLE_IDENTIFIER = "com.ssrlive.issr.$(TARGET_NAME)";
+                               PRODUCT_BUNDLE_IDENTIFIER = "com.mycompany.vpnapp.$(TARGET_NAME)";
                                PRODUCT_NAME = "$(TARGET_NAME)";
                                PROVISIONING_PROFILE = "";
                                PROVISIONING_PROFILE_SPECIFIER = "";
@@ -4013,7 +4013,7 @@
                                        "$(PROJECT_DIR)/PacketTunnel/Shadowsocks/libsodium-ios/lib",
                                        "$(PROJECT_DIR)/PacketTunnel",
                                );
-                               PRODUCT_BUNDLE_IDENTIFIER = "com.ssrlive.issr.$(TARGET_NAME)";
+                               PRODUCT_BUNDLE_IDENTIFIER = "com.mycompany.vpnapp.$(TARGET_NAME)";
                                PRODUCT_NAME = "$(TARGET_NAME)";
                                PROVISIONING_PROFILE = "";
                                PROVISIONING_PROFILE_SPECIFIER = "";
diff --git a/iShadowsocksR/Potatso.entitlements b/iShadowsocksR/Potatso.entitlements
index 64cdda7..df48c4c 100644
--- a/iShadowsocksR/Potatso.entitlements
+++ b/iShadowsocksR/Potatso.entitlements
@@ -12,7 +12,7 @@
        </array>
        <key>com.apple.security.application-groups</key>
        <array>
-               <string>group.com.ssrlive.issr</string>
+               <string>group.com.mycompany.vpnapp</string>
        </array>
        <key>keychain-access-groups</key>
        <array>
vgo4autobot commented 1 year ago

谢谢,我再试试

vgo4autobot commented 1 year ago

您好,我现在就是编译都通过了,就是安装到真机上,说uninstall, image Details

Unable to install "iShadowsocksR" Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402653081 Recovery Suggestion: Please check your project settings and ensure that a valid product has been built. User Info: { DVTErrorCreationDateKey = "2023-02-14 08:23:52 +0000"; IDERunOperationFailingWorker = IDEInstalliPhoneLauncher; }

There was an internal API error. Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402653081 User Info: { DVTRadarComponentKey = 261622; MobileDeviceErrorCode = "(0xE8000067)"; "com.apple.dtdevicekit.stacktrace" = ( 0 DTDeviceKitBase 0x000000011102bc90 DTDKCreateNSErrorFromAMDErrorCode + 235 1 DTDeviceKitBase 0x00000001110682ee 90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155 2 DVTFoundation 0x0000000104d6de01 DVTInvokeWithStrongOwnership + 71 3 DTDeviceKitBase 0x0000000111068016 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1409 4 IDEiOSSupportCore 0x000000010f0937a0 118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.301 + 3520 5 DVTFoundation 0x0000000104ea3a09 __DVT_CALLING_CLIENT_BLOCK + 7 6 DVTFoundation 0x0000000104ea451d DVTDispatchAsync_block_invoke + 196 7 libdispatch.dylib 0x00007ff80038d0cc _dispatch_call_block_and_release + 12 8 libdispatch.dylib 0x00007ff80038e317 _dispatch_client_callout + 8 9 libdispatch.dylib 0x00007ff800394317 _dispatch_lane_serial_drain + 672 10 libdispatch.dylib 0x00007ff800394dfd _dispatch_lane_invoke + 366 11 libdispatch.dylib 0x00007ff80039eeee _dispatch_workloop_worker_thread + 753 12 libsystem_pthread.dylib 0x00007ff800541fd0 _pthread_wqthread + 326 13 libsystem_pthread.dylib 0x00007ff800540f57 start_wqthread + 15 ); }

Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : { "device_model" = "iPhone11,8"; "device_osBuild" = "16.1 (20B82)"; "device_platform" = "com.apple.platform.iphoneos"; "launchSession_schemeCommand" = Run; "launchSession_state" = 1; "launchSession_targetArch" = arm64; "operation_duration_ms" = 6975; "operation_errorCode" = "-402653081"; "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_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_runnable_type" = 2; "param_testing_launchedForTesting" = 0; "param_testing_suppressSimulatorApp" = 0; "param_testing_usingCLI" = 0; "sdk_canonicalName" = "iphoneos16.2"; "sdk_osVersion" = "16.2"; "sdk_variant" = iphoneos; }

System Information

macOS Version 12.6 (Build 21G115) Xcode 14.2 (21534) (Build 14C18) Timestamp: 2023-02-14T16:23:52+08:00

ssrlive commented 1 year ago

也不知道你玩了几天 xcode ,本来不在 macOS 上工作很久了,现在频繁换系统教你。水平基本得这样,还敢玩苹果,果然胆子不小。

image

image

或者通过菜单项

image

vgo4autobot commented 1 year ago

我就是这样操作的

https://user-images.githubusercontent.com/33314873/218707392-a2787393-7fd4-4273-8e26-b27bd37b65db.mp4 视频您看看。谢谢

vgo4autobot commented 1 year ago

不知道怎么回事,之前也没遇到类似

ssrlive commented 1 year ago

清空構建文件夾。再試一把。重啓機器。再來。再不行就google找xcode的 cpu 架構是不是哪裏沒有設置正確。 垃圾 xcode 幾百個坑等着你呢。

ssrlive commented 1 year ago

也有可能你的手機沒有在蘋果後臺登記。不是隨隨便便一個蘋果手機就能安裝的。必須在蘋果網站上有允許調試的記錄。

vgo4autobot commented 1 year ago

明白,我再试试.我这个手机肯定是注册了开发者后台了,之前其他应用都是这个调试的。不知道这个项目是不是有些库手机不兼容

vgo4autobot commented 1 year ago

Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's. 现在报这个错

ssrlive commented 1 year ago

换了新系统, 升级到 Xcode 14.3 我顺利编译. 有问题都在 这里 解决.

vgo4autobot commented 1 year ago

我已经编译通过了,谢谢

paopao517 commented 8 months ago

我已经编译通过了,谢谢

请问怎么解决的,我也遇到这个问题了