Question

I make a CocoaPods Spec and ask a pull request to its master repo, but my request didn't pass because :

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.

What's that mean?

Was it helpful?

Solution

From the 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

So I guess you're either putting "lib" on the start of it or specifying an extension and you're not supposed to.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top