Ios CoCoapod用于使用Makefile的第三方库
我正在做一个项目,它将使用一个开源的跨平台库。这个库是一个巨大的库,使用Ios CoCoapod用于使用Makefile的第三方库,ios,cocoapods,Ios,Cocoapods,我正在做一个项目,它将使用一个开源的跨平台库。这个库是一个巨大的库,使用Makefile系统(甚至Rakefile请参见prepare\u命令docs:。感谢alloy。下面是一个示例 Pod::Spec.new do |s| s.prepare_command = <<-CMD cd MySDK sh ./build.sh debug # run shell or makefile to generate the mysdk.h and
Makefile
系统(甚至Rakefile
请参见prepare\u命令
docs:。感谢alloy。下面是一个示例
Pod::Spec.new do |s|
s.prepare_command = <<-CMD
cd MySDK
sh ./build.sh debug # run shell or makefile to generate the mysdk.h and libmysdk.a
CMD
s.name = "MySDK"
s.version = "1.0.0"
s.source_files = "MySDK/output/debug/ios/arm/*.h"
s.vendored_libraries = "MySDK/output/debug/ios/arm/libmysdk.a",
# s.public_header_files = "MySDK/output/debug/ios/arm/mysdk.h"
s.authors = "xxxx"
s.homepage = "xx"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.source = { :git => 'https://github.com/<GITHUB_USERNAME>/podTestLibrary.git', :tag => s.version.to_s }
s.summary = "my sdk"
end
pre_install do |installer|
`cd ./MySDK; sh ./build.sh debug;`
end