forked from reactnativecn/react-native-talkingdata
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathreact-native-talkingdata.podspec
More file actions
41 lines (34 loc) · 1.51 KB
/
react-native-talkingdata.podspec
File metadata and controls
41 lines (34 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
Pod::Spec.new do |s|
s.name = 'react-native-talkingdata'
s.version = package['version']
s.summary = package['description']
s.license = package['license']
s.authors = package['author']
s.homepage = package['homepage']
s.platform = :ios, "9.0"
s.source = { :git => "https://github.com/cross2d/react-native-talkingdata.git", :tag => "v#{s.version}" }
s.source_files = "ios/**/*.{h,m}"
s.libraries = "z"
s.preserve_paths = "ios/TalkingDataSDK/libTalkingData.a"
s.vendored_libraries = "ios/TalkingDataSDK/libTalkingData.a"
s.pod_target_xcconfig = {
"FRAMEWORK_SEARCH_PATHS" => '$(inherited) $(SRCROOT)/../../node_modules/@cross2d/react-native-talkingdata/ios/TalkingDataSDK/',
"LIBRARY_SEARCH_PATHS" => '$(inherited) $(SRCROOT)/../../node_modules/@cross2d/react-native-talkingdata/ios/TalkingDataSDK/'
}
# 问题:
# 查看详细信息:pod lib lint --verbose
# pod lib lint 验证不通过,App normal i386和App normal x86_64。不支持i386和x86_64编译,即不能在模拟器下编译。
# 解决:添加spec.pod_target_xcconfig。
# 参考: https://www.jianshu.com/p/88180b4d2ab7/
# 执行命令跳过模拟器验证:pod lib lint --skip-import-validation
# s.pod_target_xcconfig = { 'VALID_ARCHS[sdk=iphonesimulator*]' => '' }
s.frameworks = [
"AdSupport",
"CoreMotion",
"CoreTelephony",
"SystemConfiguration"
]
s.dependency 'React'
end