ShadowsocksR-Live / iShadowsocksR

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

About Cycle inside CallbackURLKit; building could produce unreliable results #68

Closed lls275 closed 2 years ago

lls275 commented 2 years ago

When I build the project, I find that the Cycle inside CallbackURLKit; building could produce unreliable results. error will appear. How can I fix it?

Cycle inside CallbackURLKit; building could produce unreliable results. This usually can be resolved by moving the target's Headers build phase before Compile Sources.
Cycle details:
→ Target 'CallbackURLKit' has link command with output '/Users/jz/Library/Developer/Xcode/DerivedData/iShadowsocksR-acvpbhqcwpoufuaguoictgwlbiuc/Build/Products/Debug-iphoneos/CallbackURLKit.framework/CallbackURLKit'
○ Target 'CallbackURLKit' has compile command with input '/Users/jz/Library/Developer/Xcode/DerivedData/iShadowsocksR-acvpbhqcwpoufuaguoictgwlbiuc/Build/Intermediates.noindex/CallbackURLKit.build/Debug-iphoneos/CallbackURLKit.build/DerivedSources/CallbackURLKit_vers.c'
○ Target 'CallbackURLKit' has compile command for Swift source files
○ Target 'CallbackURLKit' has copy command from '/Users/jz/Desktop/iShadowsocksR/Library/CallbackURLKit/Xcode/iOS/CallbackURLKit.h' to '/Users/jz/Library/Developer/Xcode/DerivedData/iShadowsocksR-acvpbhqcwpoufuaguoictgwlbiuc/Build/Products/Debug-iphoneos/CallbackURLKit.framework/Headers/CallbackURLKit.h'

Raw dependency cycle trace:

target:  ->

node: <all> ->

command: <all> ->

node: /Users/jz/Library/Developer/Xcode/DerivedData/iShadowsocksR-acvpbhqcwpoufuaguoictgwlbiuc/Build/Products/Debug-iphoneos/CallbackURLKit.framework/CallbackURLKit ->

command: target-CallbackURLKit-cabbd167fcd07023ca79fb7460ac722decb0589ae08e4a27c16de552d16baa80-:Debug:Ld /Users/jz/Library/Developer/Xcode/DerivedData/iShadowsocksR-acvpbhqcwpoufuaguoictgwlbiuc/Build/Products/Debug-iphoneos/CallbackURLKit.framework/CallbackURLKit normal ->

CYCLE POINT ->

node: /Users/jz/Library/Developer/Xcode/DerivedData/iShadowsocksR-acvpbhqcwpoufuaguoictgwlbiuc/Build/Intermediates.noindex/CallbackURLKit.build/Debug-iphoneos/CallbackURLKit.build/Objects-normal/arm64/CallbackURLKit_vers.o ->

command: target-CallbackURLKit-cabbd167fcd07023ca79fb7460ac722decb0589ae08e4a27c16de552d16baa80-:Debug:CompileC /Users/jz/Library/Developer/Xcode/DerivedData/iShadowsocksR-acvpbhqcwpoufuaguoictgwlbiuc/Build/Intermediates.noindex/CallbackURLKit.build/Debug-iphoneos/CallbackURLKit.build/Objects-normal/arm64/CallbackURLKit_vers.o /Users/jz/Library/Developer/Xcode/DerivedData/iShadowsocksR-acvpbhqcwpoufuaguoictgwlbiuc/Build/Intermediates.noindex/CallbackURLKit.build/Debug-iphoneos/CallbackURLKit.build/DerivedSources/CallbackURLKit_vers.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler ->

node: <target-CallbackURLKit-cabbd167fcd07023ca79fb7460ac722decb0589ae08e4a27c16de552d16baa80--generated-headers> ->

command: Gate target-CallbackURLKit-cabbd167fcd07023ca79fb7460ac722decb0589ae08e4a27c16de552d16baa80--generated-headers ->

node: /Users/jz/Library/Developer/Xcode/DerivedData/iShadowsocksR-acvpbhqcwpoufuaguoictgwlbiuc/Build/Intermediates.noindex/CallbackURLKit.build/Debug-iphoneos/CallbackURLKit.build/Objects-normal/arm64/Client.o ->

command: target-CallbackURLKit-cabbd167fcd07023ca79fb7460ac722decb0589ae08e4a27c16de552d16baa80-:Debug:CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler ->

node: /Users/jz/Library/Developer/Xcode/DerivedData/iShadowsocksR-acvpbhqcwpoufuaguoictgwlbiuc/Build/Products/Debug-iphoneos/CallbackURLKit.framework/Headers/CallbackURLKit.h ->

command: target-CallbackURLKit-cabbd167fcd07023ca79fb7460ac722decb0589ae08e4a27c16de552d16baa80-:Debug:CpHeader /Users/jz/Library/Developer/Xcode/DerivedData/iShadowsocksR-acvpbhqcwpoufuaguoictgwlbiuc/Build/Products/Debug-iphoneos/CallbackURLKit.framework/Headers/CallbackURLKit.h /Users/jz/Desktop/iShadowsocksR/Library/CallbackURLKit/Xcode/iOS/CallbackURLKit.h ->

node: <target-CallbackURLKit-cabbd167fcd07023ca79fb7460ac722decb0589ae08e4a27c16de552d16baa80--phase0-compile-sources> ->

command: Gate target-CallbackURLKit-cabbd167fcd07023ca79fb7460ac722decb0589ae08e4a27c16de552d16baa80--phase0-compile-sources ->

node: /Users/jz/Library/Developer/Xcode/DerivedData/iShadowsocksR-acvpbhqcwpoufuaguoictgwlbiuc/Build/Intermediates.noindex/CallbackURLKit.build/Debug-iphoneos/CallbackURLKit.build/Objects-normal/arm64/CallbackURLKit_vers.o
ssrlive commented 2 years ago

I don't know what happenned to you. But I can ensure you have changed the project settings. just checkout source code from beginning and try it again.

lls275 commented 2 years ago

I don't know what happenned to you. But I can ensure you have changed the project settings. just checkout source code from beginning and try it again.

May I ask the author, which xcode version are you using now to compile?

ssrlive commented 2 years ago

Screen Shot 2022-04-21 at 16 53 03

lls275 commented 2 years ago

too weird! I also use this version to compile, but the above error occurs. I compiled according to the following steps, but the error still occurs.I am using macos on the x86 platform.

git clone --recurse-submodules https://github.com/ShadowsocksR-Live/iShadowsocksR.git
cd iShadowsocksR
sudo gem install cocoapods
pod install                                # pull down dependencies into our project

Can you tell me the detailed steps? There is a bug that occurs https://github.com/ShadowsocksR-Live/iShadowsocksR/issues/65#issue-1058240829

lls275 commented 2 years ago

What is your current Macos system version?

ssrlive commented 2 years ago

Screen Shot 2022-04-21 at 17 03 21

paopao517 commented 2 years ago

When I build the project, I find that the Cycle inside CallbackURLKit; building could produce unreliable results. error will appear. How can I fix it? ...

image

According to the prompt information to modify. "This usually can be resolved by moving the target's Headers build phase before Compile Sources."

ssrlive commented 2 years ago

this is the only change point for the full project. do NOT change any others. don't mind the tons of warnnings, there all can ignored. Never Never Never do the stupid pod update. OK?

image

And this is all my chnges for the full project. run command git diff on my project root folder.

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.fuckxjp.issr</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.fuckxjp.issr</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
@@ -3771,7 +3771,7 @@
                                "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
                                CODE_SIGN_STYLE = Automatic;
                                DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
-                               DEVELOPMENT_TEAM = "";
+                               DEVELOPMENT_TEAM = YITUI625FU;
                                FRAMEWORK_SEARCH_PATHS = (
                                        "$(inherited)",
                                        "$(PROJECT_DIR)",
@@ -3796,7 +3796,7 @@
                                        "@rpath/Frameworks",
                                );
                                OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" -DDEBUG";
-                               PRODUCT_BUNDLE_IDENTIFIER = com.ssrlive.issr;
+                               PRODUCT_BUNDLE_IDENTIFIER = com.fuckxjp.issr;
                                PRODUCT_NAME = "$(TARGET_NAME)";
                                PROVISIONING_PROFILE = "";
                                PROVISIONING_PROFILE_SPECIFIER = "";
@@ -3818,7 +3818,7 @@
                                CODE_SIGN_IDENTITY = "iPhone Developer";
                                "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
                                CODE_SIGN_STYLE = Automatic;
-                               DEVELOPMENT_TEAM = "";
+                               DEVELOPMENT_TEAM = YITUI625FU;
                                FRAMEWORK_SEARCH_PATHS = (
                                        "$(inherited)",
                                        "$(PROJECT_DIR)",
@@ -3842,7 +3842,7 @@
                                        "@executable_path/Frameworks",
                                        "@rpath/Frameworks",
                                );
-                               PRODUCT_BUNDLE_IDENTIFIER = com.ssrlive.issr;
+                               PRODUCT_BUNDLE_IDENTIFIER = com.fuckxjp.issr;
                                PRODUCT_NAME = "$(TARGET_NAME)";
                                PROVISIONING_PROFILE = "";
                                PROVISIONING_PROFILE_SPECIFIER = "";
@@ -3866,7 +3866,7 @@
                                "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
                                CODE_SIGN_STYLE = Automatic;
                                DEBUG_INFORMATION_FORMAT = dwarf;
-                               DEVELOPMENT_TEAM = "";
+                               DEVELOPMENT_TEAM = YITUI625FU;
                                FRAMEWORK_SEARCH_PATHS = "$(inherited)";
                                GCC_PREPROCESSOR_DEFINITIONS = (
                                        "$(inherited)",
@@ -3878,7 +3878,7 @@
                                        "@executable_path/Frameworks",
                                        "@executable_path/../../Frameworks",
                                );
-                               PRODUCT_BUNDLE_IDENTIFIER = "com.ssrlive.issr.$(TARGET_NAME)";
+                               PRODUCT_BUNDLE_IDENTIFIER = "com.fuckxjp.issr.$(TARGET_NAME)";
                                PRODUCT_NAME = "$(TARGET_NAME)";
                                PROVISIONING_PROFILE = "";
                                PROVISIONING_PROFILE_SPECIFIER = "";
@@ -3899,7 +3899,7 @@
                                CODE_SIGN_IDENTITY = "iPhone Developer";
                                "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
                                CODE_SIGN_STYLE = Automatic;
-                               DEVELOPMENT_TEAM = "";
+                               DEVELOPMENT_TEAM = YITUI625FU;
                                FRAMEWORK_SEARCH_PATHS = "$(inherited)";
                                GCC_PREPROCESSOR_DEFINITIONS = (
                                        "$(inherited)",
@@ -3911,7 +3911,7 @@
                                        "@executable_path/Frameworks",
                                        "@executable_path/../../Frameworks",
                                );
-                               PRODUCT_BUNDLE_IDENTIFIER = "com.ssrlive.issr.$(TARGET_NAME)";
+                               PRODUCT_BUNDLE_IDENTIFIER = "com.fuckxjp.issr.$(TARGET_NAME)";
                                PRODUCT_NAME = "$(TARGET_NAME)";
                                PROVISIONING_PROFILE = "";
                                PROVISIONING_PROFILE_SPECIFIER = "";
@@ -3931,7 +3931,7 @@
                                "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
                                CODE_SIGN_STYLE = Automatic;
                                DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
-                               DEVELOPMENT_TEAM = "";
+                               DEVELOPMENT_TEAM = YITUI625FU;
                                FRAMEWORK_SEARCH_PATHS = (
                                        "$(inherited)",
                                        "$(PROJECT_DIR)",
@@ -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.fuckxjp.issr.$(TARGET_NAME)";
                                PRODUCT_NAME = "$(TARGET_NAME)";
                                PROVISIONING_PROFILE = "";
                                PROVISIONING_PROFILE_SPECIFIER = "";
@@ -3981,7 +3981,7 @@
                                CODE_SIGN_IDENTITY = "iPhone Distribution";
                                "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
                                CODE_SIGN_STYLE = Automatic;
-                               DEVELOPMENT_TEAM = "";
+                               DEVELOPMENT_TEAM = YITUI625FU;
                                FRAMEWORK_SEARCH_PATHS = (
                                        "$(inherited)",
                                        "$(PROJECT_DIR)",
@@ -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.fuckxjp.issr.$(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.fuckxjp.issr</string>
        </array>
        <key>keychain-access-groups</key>
        <array>