iOS Coacopods spec fix (#8678)

This commit is contained in:
Guoyu Wang 2021-08-11 10:11:44 -07:00 committed by GitHub
parent 0725f80d2d
commit a13daf550b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -16,8 +16,10 @@ Pod::Spec.new do |spec|
A pod for the ONNX Runtime Mobile C/C++ library.
DESC
spec.library = "c++"
spec.user_target_xcconfig = {
spec.pod_target_xcconfig = {
"OTHER_CPLUSPLUSFLAGS" => "-fvisibility=hidden -fvisibility-inlines-hidden",
}
spec.user_target_xcconfig = {
# TODO workaround - support arm64 iphonesimulator later
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "arm64"
}

View file

@ -29,7 +29,8 @@ Pod::Spec.new do |s|
core.pod_target_xcconfig = {
"HEADER_SEARCH_PATHS" => include_dirs.join(" "),
"EXCLUDED_ARCHS[sdk=iphonesimulator*]": "arm64",
"OTHER_CPLUSPLUSFLAGS" => "-fvisibility=hidden -fvisibility-inlines-hidden",
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "arm64",
}
core.public_header_files = [