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

pod 三方库库开发时候,如果 依赖了Masonry,s.dependency 'Masonry' , '1.1.0',pod在 本地校验时候报错clang: error: SDK does not contain 'libarclite' #614

Open
chenchangjun321 opened this issue Jan 24, 2025 · 1 comment

Comments

@chenchangjun321
Copy link

我在LPSoundSDK.podspec 添加了对Masonry 的依赖:

依赖三方的库

s.dependency 'Masonry' , '1.1.0'
执行本地校验
pod spec lint LPSoundSDK.podspec --sources='https://github.com/CocoaPods/Specs.git,https://gitee.com/chen-changjun-code/lp-sdk-repo.git' --allow-warnings --verbose

时候,如下主要报错:

Ld /Users/chencj/Library/Developer/Xcode/DerivedData/App-cyfzhmonjjxdnycdmocixbmljvja/Build/Products/Release-iphonesimulator/Masonry/Masonry.framework/Masonry normal (in target 'Masonry' from project 'Pods')
    cd /var/folders/mp/b477dn7d1x59zkv6p80krytw0000gn/T/CocoaPods-Lint-20250124-40920-7lh91a-LPSoundSDK/Pods
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -reproducible -target x86_64-apple-ios8.0-simulator -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk -Os -L/Users/chencj/Library/Developer/Xcode/DerivedData/App-cyfzhmonjjxdnycdmocixbmljvja/Build/Intermediates.noindex/EagerLinkingTBDs/Release-iphonesimulator -L/Users/chencj/Library/Developer/Xcode/DerivedData/App-cyfzhmonjjxdnycdmocixbmljvja/Build/Products/Release-iphonesimulator/Masonry -F/Users/chencj/Library/Developer/Xcode/DerivedData/App-cyfzhmonjjxdnycdmocixbmljvja/Build/Intermediates.noindex/EagerLinkingTBDs/Release-iphonesimulator -F/Users/chencj/Library/Developer/Xcode/DerivedData/App-cyfzhmonjjxdnycdmocixbmljvja/Build/Products/Release-iphonesimulator/Masonry -filelist /Users/chencj/Library/Developer/Xcode/DerivedData/App-cyfzhmonjjxdnycdmocixbmljvja/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/Masonry.build/Objects-normal/x86_64/Masonry.LinkFileList -install_name @rpath/Masonry.framework/Masonry -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/chencj/Library/Developer/Xcode/DerivedData/App-cyfzhmonjjxdnycdmocixbmljvja/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/Masonry.build/Objects-normal/x86_64/Masonry_lto.o -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -framework Foundation -framework UIKit -framework Foundation -framework UIKit -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/chencj/Library/Developer/Xcode/DerivedData/App-cyfzhmonjjxdnycdmocixbmljvja/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/Masonry.build/Objects-normal/x86_64/Masonry_dependency_info.dat -o /Users/chencj/Library/Developer/Xcode/DerivedData/App-cyfzhmonjjxdnycdmocixbmljvja/Build/Products/Release-iphonesimulator/Masonry/Masonry.framework/Masonry
clang: error: SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a'; try increasing the minimum deployment target

note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'Pods-App' from project 'Pods')
note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'App' from project 'App')
note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'LPSoundSDK' from project 'Pods')
/var/folders/mp/b477dn7d1x59zkv6p80krytw0000gn/T/CocoaPods-Lint-20250124-40920-7lh91a-LPSoundSDK/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 12.0 to 18.2.99. (in target 'Masonry' from project 'Pods')
note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'Masonry' from project 'Pods')
note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'LPSoundSDK-LPSoundSDK' from project 'Pods')
** BUILD FAILED **


The following build commands failed:
	Ld /Users/chencj/Library/Developer/Xcode/DerivedData/App-cyfzhmonjjxdnycdmocixbmljvja/Build/Products/Release-iphonesimulator/Masonry/Masonry.framework/Masonry normal (in target 'Masonry' from project 'Pods')
	Building workspace App with scheme App and configuration Release
(2 failures)

Testing with xcodebuild.
-> LPSoundSDK (0.6.0)
- WARN | summary: The summary is not meaningful.
- NOTE | url: The URL (https://gitee.com/chen-changjun-code/lpsound-sdk) is not reachable.
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.
- NOTE | xcodebuild: note: Using codesigning identity override: -
- NOTE | [iOS] xcodebuild: note: Building targets in dependency order
- NOTE | [iOS] xcodebuild: note: Target dependency graph (5 targets)
- NOTE | [iOS] xcodebuild: clang: error: SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a'; try increasing the minimum deployment target
- NOTE | [iOS] xcodebuild: note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'Pods-App' from project 'Pods')
- NOTE | [iOS] xcodebuild: note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'App' from project 'App')
- NOTE | [iOS] xcodebuild: note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'LPSoundSDK' from project 'Pods')
- NOTE | [iOS] xcodebuild: Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 12.0 to 18.2.99. (in target 'Masonry' from project 'Pods')
- NOTE | [iOS] xcodebuild: note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'Masonry' from project 'Pods')
- NOTE | [iOS] xcodebuild: note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'LPSoundSDK-LPSoundSDK' from project 'Pods')

Pods workspace available at /var/folders/mp/b477dn7d1x59zkv6p80krytw0000gn/T/CocoaPods-Lint-20250124-40920-7lh91a-LPSoundSDK/App.xcworkspace for inspection.

主要原因是:
clang: error: SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a'; try increasing the minimum deployment target

是因为Masonry 支持 版本太低,新版本的XCode 已经没有 libarclite库了,所以无法校验通过

@chenchangjun321
Copy link
Author

作者能否发布一个新版本的,最低支持版本从12开始,9以前的老系统说实话,现在基本没有项目支持了

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

1 participant