我正在尝试编写一个PodSpec,该PodSpec允许我们在安装到设备上时使用一个框架JellyFrameworkForDefice.framework
,在通过Xcode安装到模拟器时使用另一个框架JellyFrameworkForSimulator.framework
。有人对此有任何想法吗,或者有例子看到他们以前曾在哪里工作过?
Pod::Spec.new do |s|
s.name = 'Jelly'
s.module_name = 'Jelly'
s.version = '1.0.3'
s.summary = 'Jelly 4.1.2'
s.description = <<-DESC
TODO: Add long description of the pod here.
DESC
s.homepage = 'https://github.com/<GITHUB_USERNAME>/Jelly'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { '' => '' }
s.source = { :git => 'https://github.com/<GITHUB_USERNAME>/Jelly', :tag => s.version.to_s }
s.ios.deployment_target = '8.0'
s.source_files = 'Jelly/Classes/**/*.h', 'Jelly/Classes/**/*.m', 'Jelly/Classes/**/*.mm'
s.resources = 'Jelly/Assets/UX_Resources/*', 'Jelly/Classes/UX/Resources/*'
s.libraries = 'c++'
s.vendored_framework = 'Jelly/Libraries/JellyFrameworkForDefice.framework', 'Jelly/Libraries/JellyFrameworkForSimulator.framework'
s.dependency 'Cordova', '4.2.1'
s.dependency 'DependencyContainer'
s.dependency 'JellyService'
s.compiler_flags = '-lstdc++', '-lc++'
s.ios.framework = 'AudioToolbox', 'AVFoundation', 'CoreGraphics',
'CoreMedia', 'CoreVideo', 'MobileCoreServices', 'OpenGLES',
'QuartzCore', 'Security', 'ImageIO', 'Foundation', 'UIKit'
s.xcconfig = { 'OTHER_LDFLAGS[sdk=iphonesimulator*]' => '$(inherited) -framework "JellyFrameworkForSimulator"',
'OTHER_LDFLAGS[sdk=iphoneos*]' => '$(inherited) -framework "JellyFrameworkForDefice"' }
end