XITRIX / iTorrent_Framework

18 stars 8 forks source link

try to run make.sh to build iTorrent_Framework faild #3

Open tbfungeek opened 1 year ago

tbfungeek commented 1 year ago

Hi @XITRIX First of all thanks for your great work. I am now meet a problem when i try to build iTorrent_Framework myself use your make.sh in the root path of project.I don`t know how to fix this problem.can you help . My Xcode version is 14.2 (14C18) My Mac Sytem version is 13.2.1 (22D68) in M2 Platform

boost-build version 1.81.0 boost version 1.81.0_1 openssl openssl@1.1 1.1.1t

the following is the build log build.log

Thanks

and the following is log in terminal

(base) ➜ iTorrent_Framework git:(master) ✗ ./make.sh >> bull.log mkdir: build: File exists rm: ./build/ITorrentFramework-iphonesimulator.xcarchive: No such file or directory rm: ./build/ITorrentFramework-iphoneos.xcarchive: No such file or directory rm: ./build/ITorrentFramework.xcframework: No such file or directory --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device } { platform:iOS Simulator, id:B886A6EA-0CEE-4733-B84A-9B5B01E270FF, OS:16.2, name:iPad (10th generation) } { platform:iOS Simulator, id:52477144-ACE8-47F0-9408-1F0DE5312366, OS:16.2, name:iPad Air (5th generation) } { platform:iOS Simulator, id:7D01DC60-C6D2-4789-B7DD-92B9371E166E, OS:16.2, name:iPad Pro (11-inch) (4th generation) } { platform:iOS Simulator, id:7353C512-B08A-4C6B-B16C-C2575E839F38, OS:16.2, name:iPad Pro (12.9-inch) (6th generation) } { platform:iOS Simulator, id:C20F86EE-8496-47F4-865E-876802FE49B5, OS:16.2, name:iPad mini (6th generation) } { platform:iOS Simulator, id:649B076A-1EFF-43A3-9D17-BF1D36232900, OS:16.2, name:iPhone 14 } { platform:iOS Simulator, id:8E18A587-37C3-42EB-93DC-BF0C798C9121, OS:16.2, name:iPhone 14 Plus } { platform:iOS Simulator, id:97B2E966-2F57-4C21-A16B-B6519FDAF533, OS:16.2, name:iPhone 14 Pro } { platform:iOS Simulator, id:B43AFE35-D627-40AB-B5B9-497610C86B46, OS:16.2, name:iPhone 14 Pro Max } { platform:iOS Simulator, id:A379C090-FAE5-4C7A-9F48-3F702F3230F3, OS:16.2, name:iPhone SE (3rd generation) } { platform:macOS, arch:x86_64, variant:Mac Catalyst, id:6711B8F1-89E7-59AF-8C25-91F994570EC1 } { platform:macOS, arch:arm64, variant:Mac Catalyst, id:6711B8F1-89E7-59AF-8C25-91F994570EC1 } { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:6711B8F1-89E7-59AF-8C25-91F994570EC1 } { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device } { platform:macOS, variant:Mac Catalyst, name:Any Mac } ARCHIVE FAILED

The following build commands failed: PhaseScriptExecution Run\ Script /Users/linxiaohai/Library/Developer/Xcode/DerivedData/ITorrentFramework-domcwjwsikuemmezzajpiupljpom/Build/Intermediates.noindex/ArchiveIntermediates/ITorrentFramework/IntermediateBuildFilesPath/ITorrentFramework.build/Release-iphonesimulator/ITorrentFramework.build/Script-7C6020A1296C738B00702EB1.sh (in target 'ITorrentFramework' from project 'ITorrentFramework') (1 failure) --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device } { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:6711B8F1-89E7-59AF-8C25-91F994570EC1 } { platform:macOS, arch:x86_64, variant:Mac Catalyst, id:6711B8F1-89E7-59AF-8C25-91F994570EC1 } { platform:macOS, arch:arm64, variant:Mac Catalyst, id:6711B8F1-89E7-59AF-8C25-91F994570EC1 } { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device } { platform:macOS, variant:Mac Catalyst, name:Any Mac } { platform:iOS Simulator, id:B886A6EA-0CEE-4733-B84A-9B5B01E270FF, OS:16.2, name:iPad (10th generation) } { platform:iOS Simulator, id:52477144-ACE8-47F0-9408-1F0DE5312366, OS:16.2, name:iPad Air (5th generation) } { platform:iOS Simulator, id:7D01DC60-C6D2-4789-B7DD-92B9371E166E, OS:16.2, name:iPad Pro (11-inch) (4th generation) } { platform:iOS Simulator, id:7353C512-B08A-4C6B-B16C-C2575E839F38, OS:16.2, name:iPad Pro (12.9-inch) (6th generation) } { platform:iOS Simulator, id:C20F86EE-8496-47F4-865E-876802FE49B5, OS:16.2, name:iPad mini (6th generation) } { platform:iOS Simulator, id:649B076A-1EFF-43A3-9D17-BF1D36232900, OS:16.2, name:iPhone 14 } { platform:iOS Simulator, id:8E18A587-37C3-42EB-93DC-BF0C798C9121, OS:16.2, name:iPhone 14 Plus } { platform:iOS Simulator, id:97B2E966-2F57-4C21-A16B-B6519FDAF533, OS:16.2, name:iPhone 14 Pro } { platform:iOS Simulator, id:B43AFE35-D627-40AB-B5B9-497610C86B46, OS:16.2, name:iPhone 14 Pro Max } { platform:iOS Simulator, id:A379C090-FAE5-4C7A-9F48-3F702F3230F3, OS:16.2, name:iPhone SE (3rd generation) } ARCHIVE FAILED

The following build commands failed: PhaseScriptExecution Run\ Script /Users/linxiaohai/Library/Developer/Xcode/DerivedData/ITorrentFramework-domcwjwsikuemmezzajpiupljpom/Build/Intermediates.noindex/ArchiveIntermediates/ITorrentFramework/IntermediateBuildFilesPath/ITorrentFramework.build/Release-iphoneos/ITorrentFramework.build/Script-7C6020A1296C738B00702EB1.sh (in target 'ITorrentFramework' from project 'ITorrentFramework') (1 failure) error: the path does not point to a valid framework: /Users/linxiaohai/source/new/play-IOS/iTorrent_Framework/build/ITorrentFramework-iphonesimulator.xcarchive/Products/Library/Frameworks/ITorrentFramework.framework rm: ./build/ITorrentFramework-iphonesimulator.xcarchive: No such file or directory rm: ./build/ITorrentFramework-iphoneos.xcarchive: No such file or directory

XITRIX commented 1 year ago

Hi, try to compile it using xCode's UI first, I think it will show you more human readable type of error, after you will be able to compile it using xCode, then try the script to make xcframework

XITRIX commented 1 year ago

Ok, I have opened the log file, you did not download dependencies.

Try to clone this project using git clone https://github.com/XITRIX/iTorrent_Framework.git --recursive

It should clone this projects with all submodules it uses

f-person commented 1 year ago

Getting the submodules doesn't really help; for whatever reason, Xcode doesn't find LibTorrent.

Ld /Users/fperson/Library/Developer/Xcode/DerivedData/ITorrentFramework-bdvbqrjkphxhbfdznggbaxdxqeai/Build/Products/Debug-iphoneos/ITorrentFramework.framework/ITorrentFramework normal (in target 'ITorrentFramework' from project 'ITorrentFramework')
    cd /Users/fperson/iTorrent_Framework
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -Xlinker -reproducible -target arm64-apple-ios11.0 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk -L/Users/fperson/Library/Developer/Xcode/DerivedData/ITorrentFramework-bdvbqrjkphxhbfdznggbaxdxqeai/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos -L/Users/fperson/Library/Developer/Xcode/DerivedData/ITorrentFramework-bdvbqrjkphxhbfdznggbaxdxqeai/Build/Products/Debug-iphoneos -L/Users/fperson/iTorrent_Framework/submodules -F/Users/fperson/Library/Developer/Xcode/DerivedData/ITorrentFramework-bdvbqrjkphxhbfdznggbaxdxqeai/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos -F/Users/fperson/Library/Developer/Xcode/DerivedData/ITorrentFramework-bdvbqrjkphxhbfdznggbaxdxqeai/Build/Products/Debug-iphoneos -filelist /Users/fperson/Library/Developer/Xcode/DerivedData/ITorrentFramework-bdvbqrjkphxhbfdznggbaxdxqeai/Build/Intermediates.noindex/ITorrentFramework.build/Debug-iphoneos/ITorrentFramework.build/Objects-normal/arm64/ITorrentFramework.LinkFileList -install_name @rpath/ITorrentFramework.framework/ITorrentFramework -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/fperson/Library/Developer/Xcode/DerivedData/ITorrentFramework-bdvbqrjkphxhbfdznggbaxdxqeai/Build/Intermediates.noindex/ITorrentFramework.build/Debug-iphoneos/ITorrentFramework.build/Objects-normal/arm64/ITorrentFramework_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/fperson/Library/Developer/Xcode/DerivedData/ITorrentFramework-bdvbqrjkphxhbfdznggbaxdxqeai/Build/Intermediates.noindex/ITorrentFramework.build/Debug-iphoneos/ITorrentFramework.build/Objects-normal/arm64/ITorrentFramework.swiftmodule -framework SystemConfiguration -framework LibTorrent -framework OpenSSL -framework CoreFoundation -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/fperson/Library/Developer/Xcode/DerivedData/ITorrentFramework-bdvbqrjkphxhbfdznggbaxdxqeai/Build/Intermediates.noindex/ITorrentFramework.build/Debug-iphoneos/ITorrentFramework.build/Objects-normal/arm64/ITorrentFramework_dependency_info.dat -o /Users/fperson/Library/Developer/Xcode/DerivedData/ITorrentFramework-bdvbqrjkphxhbfdznggbaxdxqeai/Build/Products/Debug-iphoneos/ITorrentFramework.framework/ITorrentFramework

ld: framework not found LibTorrent
clang: error: linker command failed with exit code 1 (use -v to see invocation)