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

更改所有签名方式为本地运行后,Xcode13.4.1(M1,macOS12.4)编译失败 #16

Closed
RigoLigoRLC opened this issue Jul 22, 2022 · 3 comments

Comments

@RigoLigoRLC
Copy link

源码来自GitHub ZIP下载,没有clone。


Ld /Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-fgimuwrqnjcrtcbuwvdhfdwhpler/Build/Intermediates.noindex/LemonDaemon.build/Debug/LemonDaemon.build/Objects-normal/x86_64/Binary/LemonDaemon normal x86_64 (in target 'LemonDaemon' from project 'LemonDaemon')
    cd /Users/rigoligo/Downloads/lemon-cleaner-master/Tools/LemonDaemon
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-macos10.11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -L/Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-fgimuwrqnjcrtcbuwvdhfdwhpler/Build/Products/Debug -F/Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-fgimuwrqnjcrtcbuwvdhfdwhpler/Build/Products/Debug -filelist /Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-fgimuwrqnjcrtcbuwvdhfdwhpler/Build/Intermediates.noindex/LemonDaemon.build/Debug/LemonDaemon.build/Objects-normal/x86_64/LemonDaemon.LinkFileList -Xlinker -rpath -Xlinker @executable_path/../Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/LemonSMCKit -Xlinker -object_path_lto -Xlinker /Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-fgimuwrqnjcrtcbuwvdhfdwhpler/Build/Intermediates.noindex/LemonDaemon.build/Debug/LemonDaemon.build/Objects-normal/x86_64/LemonDaemon_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -lPods-LemonDaemon -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-fgimuwrqnjcrtcbuwvdhfdwhpler/Build/Intermediates.noindex/LemonDaemon.build/Debug/LemonDaemon.build/Objects-normal/x86_64/LemonDaemon_dependency_info.dat -o /Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-fgimuwrqnjcrtcbuwvdhfdwhpler/Build/Intermediates.noindex/LemonDaemon.build/Debug/LemonDaemon.build/Objects-normal/x86_64/Binary/LemonDaemon

ld: library not found for -lPods-LemonDaemon
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Xcode中导出的完整log:

Build target LemonDaemon_2022-07-22T19-05-21.txt

@iHTCboy
Copy link

iHTCboy commented Jul 23, 2022

GitHub Open with Xcode 打开后,把签名改为自己的开发者账号,成功运行:

image

环境:
MBP 14' M1 Max
macOS 12.4
Xcode 13.4.1 (13F100)

@RigoLigoRLC
Copy link
Author

重新尝试从GitHub clone仓库后,换用打开xcworkspace而不是根目录xcodeproj,并修改了所有带有腾讯签名的target为sign to run locally之后编译成功,但仍因为AFNetworking库的签名问题无法正常运行。继续尝试中。

dyld[17450]: Library not loaded: @rpath/AFNetworking.framework/Versions/A/AFNetworking
  Referenced from: /Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-dqlexdviqbxgymfsuukysawhycby/Build/Products/Debug/Tencent Lemon.app/Contents/MacOS/Tencent Lemon
  Reason: tried: '/Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-dqlexdviqbxgymfsuukysawhycby/Build/Products/Debug/AFNetworking.framework/Versions/A/AFNetworking' (no such file), '/Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-dqlexdviqbxgymfsuukysawhycby/Build/Products/Debug/Tencent Lemon.app/Contents/MacOS/../Frameworks/AFNetworking.framework/Versions/A/AFNetworking' (code signature in <5FC7CEED-6FAA-3E7F-B047-5B7A2116E8D9> '/Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-dqlexdviqbxgymfsuukysawhycby/Build/Products/Debug/Tencent Lemon.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/usr/lib/swift/AFNetworking.framework/Versions/A/AFNetworking' (no such file), '/Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-dqlexdviqbxgymfsuukysawhycby/Build/Products/Debug/Tencent Lemon.app/Contents/MacOS/../Frameworks/AFNetworking.framework/Versions/A/AFNetworking' (code signature in <5FC7CEED-6FAA-3E7F-B047-5B7A2116E8D9> '/Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-dqlexdviqbxgymfsuukysawhycby/Build/Products/Debug/Tencent Lemon.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-dqlexdviqbxgymfsuukysawhycby/Build/Products/Debug/Tencent Lemon.app/Contents/MacOS/Frameworks/AFNetworking.framework/Versions/A/AFNetworking' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/AFNetworking.framework/Versions/A/AFNetworking' (no such file), '/Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-dqlexdviqbxgymfsuukysawhycby/Build/Products/Debug/Tencent Lemon.app/Contents/MacOS/../Frameworks/AFNetworking.framework/Versions/A/AFNetworking' (code signature in <5FC7CEED-6FAA-3E7F-B047-5B7A2116E8D9> '/Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-dqlexdviqbxgymfsuukysawhycby/Build/Products/Debug/Tencent Lemon.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-dqlexdviqbxgymfsuukysawhycby/Build/Products/Debug/Tencent Lemon.app/Contents/MacOS/../Frameworks/AFNetworking.framework/Versions/A/AFNetworking' (code signature in <5FC7CEED-6FAA-3E7F-B047-5B7A2116E8D9> '/Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-dqlexdviqbxgymfsuukysawhycby/Build/Products/Debug/Tencent Lemon.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/usr/lib/swift/AFNetworking.framework/Versions/A/AFNetworking' (no such file), '/Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-dqlexdviqbxgymfsuukysawhycby/Build/Products/Debug/Tencent Lemon.app/Contents/MacOS/../Frameworks/AFNetworking.framework/Versions/A/AFNetworking' (code signature in <5FC7CEED-6FAA-3E7F-B047-5B7A2116E8D9> '/Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-dqlexdviqbxgymfsuukysawhycby/Build/Products/Debug/Tencent Lemon.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-dqlexdviqbxgymfsuukysawhycby/Build/Products/Debug/Tencent Lemon.app/Contents/MacOS/Frameworks/AFNetworking.framework/Versions/A/AFNetworking' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/AFNetworking.framework/Versions/A/AFNetworking' (no such file), '/Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-dqlexdviqbxgymfsuukysawhycby/Build/Products/Debug/Tencent Lemon.app/Contents/MacOS/../Frameworks/AFNetworking.framework/Versions/A/AFNetworking' (code signature in <5FC7CEED-6FAA-3E7F-B047-5B7A2116E8D9> '/Users/rigoligo/Library/Developer/Xcode/DerivedData/Lemon-dqlexdviqbxgymfsuukysawhycby/Build/Products/Debug/Tencent Lemon.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/Library/Frameworks/AFNetworking.framework/Versions/A/AFNetworking' (no such file), '/System/Library/Frameworks/AFNetworking.framework/Versions/A/AFNetworking' (no such file)

@onshek
Copy link

onshek commented Jul 24, 2022

签名改为个人账号后,编译成功
除tests选择run locally,其余均为development

Mac mini M1
macOS 12.5
Version 13.4.1 (13F100)

Screenshot 2022-07-24 at 17 36 17

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

4 participants