我制作一个CocoaPods Spec并向其主仓库询问拉取请求,但我的请求未通过,因为:
Baidu-Map-iOS-SDK/2.1.1/Baidu-Map-iOS-SDK.podspec [Full]
Baidu-Map-iOS-SDK (2.1.1)
- ERROR | [iOS] A library should only be specified by its name
The spec cannot be accepted.
这是什么意思?
答案 0 :(得分:0)
来自source:
def libraries_invalid?(libs)
libs.any? { |lib| lib.end_with?('.a', '.dylib') || lib.start_with?('lib') }
end
def _validate_libraries(libs)
if libraries_invalid?(libs)
error "A library should only be specified by its name"
end
end
所以我猜你要么把“lib”放在它的开头,要么指定一个扩展而你不应该这样做。