Skip to content

Commit

Permalink
feat: Support Simulator on ARM Macs (#428)
Browse files Browse the repository at this point in the history
* Support Simulator on ARM Macs

* Require GoogleMaps 7.3
  • Loading branch information
vincentisambart committed Feb 22, 2023
1 parent 39349fc commit 637954e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
6 changes: 2 additions & 4 deletions Google-Maps-iOS-Utils.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@ Pod::Spec.new do |s|
s.homepage = "https://github.com/googlemaps/google-maps-ios-utils"
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.authors = "Google Inc."
s.platform = :ios, '9.0'
s.platform = :ios, '13.0'
s.source = { :git => "https://github.com/googlemaps/google-maps-ios-utils.git",
:tag => "v#{s.version.to_s}" }
s.requires_arc = true
s.module_name = "GoogleMapsUtils"
s.swift_version = '5.0'

s.dependency 'GoogleMaps'
s.dependency 'GoogleMaps', '~> 7.3'
s.static_framework = true
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

s.subspec 'QuadTree' do |sp|
sp.public_header_files = "src/#{sp.base_name}/**/*.h"
Expand Down
7 changes: 4 additions & 3 deletions samples/ObjCDemoApp/ObjCDemoApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-ObjCDemoApp/Pods-ObjCDemoApp-resources.sh",
"${PODS_ROOT}/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Resources/GoogleMaps.bundle",
"${PODS_ROOT}/GoogleMaps/Maps/Frameworks/GoogleMaps.xcframework/ios-arm64/GoogleMaps.framework/Resources/GoogleMaps.bundle",
"${PODS_ROOT}/GoogleMaps/Maps/Frameworks/GoogleMaps.xcframework/ios-arm64_x86_64-simulator/GoogleMaps.framework/Resources/GoogleMaps.bundle",
);
name = "[CP] Copy Pods Resources";
outputPaths = (
Expand Down Expand Up @@ -332,7 +333,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer";
INFOPLIST_FILE = ObjCDemoApp/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.google.gmsutils.DemoApp;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -346,7 +347,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer";
INFOPLIST_FILE = ObjCDemoApp/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.google.gmsutils.DemoApp;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
8 changes: 4 additions & 4 deletions samples/ObjCDemoApp/Podfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.0'
source 'https://cdn.cocoapods.org/'
platform :ios, '13.0'

target 'ObjCDemoApp' do
use_frameworks!
pod 'GoogleMaps', '4.0.0'
use_frameworks!
pod 'GoogleMaps', '~> 7.3'
pod 'Google-Maps-iOS-Utils', :path => '../..'
end
6 changes: 3 additions & 3 deletions samples/SwiftDemoApp/Podfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.0'
source 'https://cdn.cocoapods.org/'
platform :ios, '13.0'

target 'SwiftDemoApp' do
use_frameworks!
pod 'GoogleMaps', '4.0.0'
pod 'GoogleMaps', '~> 7.3'
pod 'Google-Maps-iOS-Utils', :path => '../..', :testspecs => ['Tests']
end
7 changes: 4 additions & 3 deletions samples/SwiftDemoApp/SwiftDemoApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-SwiftDemoApp/Pods-SwiftDemoApp-resources.sh",
"${PODS_ROOT}/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Resources/GoogleMaps.bundle",
"${PODS_ROOT}/GoogleMaps/Maps/Frameworks/GoogleMaps.xcframework/ios-arm64/GoogleMaps.framework/Resources/GoogleMaps.bundle",
"${PODS_ROOT}/GoogleMaps/Maps/Frameworks/GoogleMaps.xcframework/ios-arm64_x86_64-simulator/GoogleMaps.framework/Resources/GoogleMaps.bundle",
);
name = "[CP] Copy Pods Resources";
outputPaths = (
Expand Down Expand Up @@ -360,7 +361,7 @@
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = SwiftDemoApp/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.google.gmsutils.DemoApp;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -379,7 +380,7 @@
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = SwiftDemoApp/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.google.gmsutils.DemoApp;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ class GeoJSONViewController: UIViewController {
geoJsonParser.parse()
renderer = GMUGeometryRenderer(map: mapView, geometries: geoJsonParser.features)
renderer.render()
}
}

0 comments on commit 637954e

Please sign in to comment.