移动后端入门 - iOS客户端(App Engine)

时间:2014-02-11 00:46:12

标签: google-app-engine ios7 xcode5

从谷歌“移动后端入门”编译“iOS客户端”时,有人得到以下错误吗? Xcode 5.02,iPhone iOS 7。

duplicate symbol _kCloudBackendClientID in:
    /Users/paolo/Library/Developer/Xcode/DerivedData/CloudBackendIOSClient-gjhkqbarudkpudeeytxgowaihtym/Build/Intermediates/CloudBackendIOSClient.build/Debug-iphoneos/CloudBackendIOSClient.build/Objects-normal/armv7/MessagesTableViewController.o
    /Users/paolo/Library/Developer/Xcode/DerivedData/CloudBackendIOSClient-gjhkqbarudkpudeeytxgowaihtym/Build/Intermediates/CloudBackendIOSClient.build/Debug-iphoneos/CloudBackendIOSClient.build/Objects-normal/armv7/Constants.o
duplicate symbol _kCloudBackendClientSecret in:
    /Users/paolo/Library/Developer/Xcode/DerivedData/CloudBackendIOSClient-gjhkqbarudkpudeeytxgowaihtym/Build/Intermediates/CloudBackendIOSClient.build/Debug-iphoneos/CloudBackendIOSClient.build/Objects-normal/armv7/MessagesTableViewController.o
    /Users/paolo/Library/Developer/Xcode/DerivedData/CloudBackendIOSClient-gjhkqbarudkpudeeytxgowaihtym/Build/Intermediates/CloudBackendIOSClient.build/Debug-iphoneos/CloudBackendIOSClient.build/Objects-normal/armv7/Constants.o
duplicate symbol _kCloudBackendChainName in:
    /Users/paolo/Library/Developer/Xcode/DerivedData/CloudBackendIOSClient-gjhkqbarudkpudeeytxgowaihtym/Build/Intermediates/CloudBackendIOSClient.build/Debug-iphoneos/CloudBackendIOSClient.build/Objects-normal/armv7/MessagesTableViewController.o
    /Users/paolo/Library/Developer/Xcode/DerivedData/CloudBackendIOSClient-gjhkqbarudkpudeeytxgowaihtym/Build/Intermediates/CloudBackendIOSClient.build/Debug-iphoneos/CloudBackendIOSClient.build/Objects-normal/armv7/Constants.o
duplicate symbol _kCloudBackendServiceURL in:
    /Users/paolo/Library/Developer/Xcode/DerivedData/CloudBackendIOSClient-gjhkqbarudkpudeeytxgowaihtym/Build/Intermediates/CloudBackendIOSClient.build/Debug-iphoneos/CloudBackendIOSClient.build/Objects-normal/armv7/MessagesTableViewController.o
    /Users/paolo/Library/Developer/Xcode/DerivedData/CloudBackendIOSClient-gjhkqbarudkpudeeytxgowaihtym/Build/Intermediates/CloudBackendIOSClient.build/Debug-iphoneos/CloudBackendIOSClient.build/Objects-normal/armv7/Constants.o
ld: 7 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 个答案:

答案 0 :(得分:0)

在文件MessagesTableViewController.m

变化:

#import "Constants.m"

为:

#import "Constants.h"