2015-11-06 51 views
0

错误:台风生成架构错误

Undefined symbols for architecture x86_64: 
    "_OBJC_CLASS_$_TyphoonAssembly", referenced from: 
     _OBJC_CLASS_$_AppAssembly in AppAssembly.o 
    "_OBJC_CLASS_$_TyphoonBlockComponentFactory", referenced from: 
     objc-class-ref in AppAssembly.o 
    "_OBJC_CLASS_$_TyphoonComponentFactory", referenced from: 
     objc-class-ref in AppDelegate.o 
     objc-class-ref in UIViewController+PropertyInjector.o 
     objc-class-ref in ReminderViewController.o 
     objc-class-ref in AppAssembly+AddReminder.o 
     objc-class-ref in DashboardViewController.o 
     objc-class-ref in AppAssembly+Dashboard.o 
    "_OBJC_CLASS_$_TyphoonDefinition", referenced from: 
     objc-class-ref in AppAssembly.o 
     objc-class-ref in AppAssembly+ViewControllers.o 
     objc-class-ref in AppAssembly+Actions.o 
     ... 
    "_OBJC_METACLASS_$_TyphoonAssembly", referenced from: 
     _OBJC_METACLASS_$_AppAssembly in AppAssembly.o 
ld: symbol(s) not found for architecture x86_64 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

什么是构建配置,架构。我正在使用 可可豆荚,XCode 7.1,目标iOS版本是8.4。我怎样才能解决这个构建错误?


Podfile


source 'https://github.com/CocoaPods/Specs.git' 
platform :ios, '7.0' 

xcodeproj 'Proj' 


pod 'KGModal' 
pod 'JSONKit' 
pod 'FBSDKCoreKit' 
pod 'FBSDKLoginKit' 
pod 'FBSDKShareKit' 
pod 'TTTAttributedLabel' 

target :Proj, :exclusive => true do 
    # pod 'Typhoon', :head 
end 

target :ProjTest, :exclusive => true do 
    pod 'Kiwi' 
end 

Podfile安装输出


Update all pods  
Updating local specs repositories 
Analyzing dependencies 
Downloading dependencies 
Using Typhoon (3.4.1) 
Using Bolts (1.4.0) 
Using FBSDKCoreKit (4.7.1) 
Using FBSDKLoginKit (4.7.1) 
Using FBSDKShareKit (4.7.1) 
Using JRSwizzle (1.0) 
Using JSONKit (1.4) 
Using KGModal (1.2.0) 
Using Kiwi (2.4.0) 
Using TTTAttributedLabel (1.13.4) 
Generating Pods project 
Integrating client project 
Sending stats 
Sending stats 
Pod installation complete! There are 8 dependencies from the Podfile and 9 
total pods installed. 

这是荚更新输出,有一个在终端没有其他的错误,我添加$(继承)到链接的搜索路径

+0

可可豆,台风(3.4.1)有什么问题? – Subhash

+0

Ohh对不起Objective-C,我搜索了更多,我用“pod”Typhoon',:head)“最后,但没有成功 – Subhash

+1

@Subhash请看看你的OTHER_LINKER_FLAGS,你有$(继承)吗?似乎问题是与椰子树。您可以将Podfile和“pod install”输出添加到问题中吗? –

回答

1

这是一个基本的错误,因为你的Xcode是无法搜索您通过吊舱想要库。请尝试以下步骤安装的CocoaPods前:

  1. 清理项目
  2. 删除所有你想通过的CocoaPods包括图书馆。
  3. 加入$在构建设置的链接器搜索路径中继承了
  4. 按照Cococapods.org上给出的所有步骤安装cocoapods。
  5. 检查是否有可能出现在终端中的错误。 如果任何错误纠正他们,并安装podfile再次清洁您的项目(CMD ++ķ)后阿恩安装podfile

最后,如果您已完成所有这些步骤,仍然显示此错误。检查您正在导入的库是通过Pod或手动导入的。将它们更改为 #import <AFNetworking/AFNetworking.h>类。

如果仍发生错误发表评论。