这是因为Google Places库在arm64设备上找不到相应的符号所致。为此,可以尝试执行以下步骤来解决此问题:
打开Xcode项目并点击'Target”中的'Build Phases”选项卡。
展开'Link Binary With Libraries”部分并确保'GooglePlaces.framework”和'GoogleMapsBase.framework”被添加到项目中。
在'Build Settings”选项卡中,在'Architectures”下拉列表中选择'Standard architectures (armv7, arm64)”。
在'Valid Architectures”下拉列表中,确保'arm64”被添加到列表中。
清除项目并重新编译。
以下是可能的代码示例:
#import "ViewController.h"
#import
@interface ViewController ()
@property (nonatomic, strong) GMSPlacesClient *placesClient;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.placesClient = [GMSPlacesClient sharedClient];
// other code
}
@end
下一篇:arm64ubuntu安装软件