Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/110.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过CocoaPods将iOS项目与CocoaLumberjack链接,未定义架构_Ios_Linker_Cocoalumberjack - Fatal编程技术网

通过CocoaPods将iOS项目与CocoaLumberjack链接,未定义架构

通过CocoaPods将iOS项目与CocoaLumberjack链接,未定义架构,ios,linker,cocoalumberjack,Ios,Linker,Cocoalumberjack,我遇到了一个问题,我的故障排除知识已经到了尽头,我看到了一个典型的“architecute X的未定义sybmols”错误,这通常可以通过确保architecute设置在项目工作区中来轻松解决,但是它似乎没有任何影响 我的播客文件是这样的: platform :ios, '5.0' pod 'CocoaLumberjack' 我也尝试过CocoaLumberjack的几个版本,从2.0到最新的Beta版本都没有用 我目前的Cocoapods版本是0.39.0.rc.1,同样,我尝试了多个版本

我遇到了一个问题,我的故障排除知识已经到了尽头,我看到了一个典型的“architecute X的未定义sybmols”错误,这通常可以通过确保architecute设置在项目工作区中来轻松解决,但是它似乎没有任何影响

我的播客文件是这样的:

platform :ios, '5.0'
pod 'CocoaLumberjack'
我也尝试过CocoaLumberjack的几个版本,从2.0到最新的Beta版本都没有用

我目前的Cocoapods版本是0.39.0.rc.1,同样,我尝试了多个版本

CocoaLumberjack通过以下方式包含在我的AppDelegate.m中:

#import <CocoaLumberjack/CocoaLumberjack.h>
我正在XCode 7.0(7A220)上构建 错误如下所示:

Ld /Users/xceph/Library/Developer/Xcode/DerivedData/MyProject-dxhidbgfhzkukyeaiirdnjduposm/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MyProject normal x86_64
    cd /Users/xceph/MyProject-iOS
    export IPHONEOS_DEPLOYMENT_TARGET=7.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -L/Users/xceph/Library/Developer/Xcode/DerivedData/MyProject-dxhidbgfhzkukyeaiirdnjduposm/Build/Products/Debug-iphonesimulator -L/Users/xceph/MyProject-iOS -L/Users/xceph/MyProject-iOS/GoogleLibrary -F/Users/xceph/Library/Developer/Xcode/DerivedData/MyProject-dxhidbgfhzkukyeaiirdnjduposm/Build/Products/Debug-iphonesimulator -F/Users/xceph/MyProject-iOS -F/Users/xceph/MyProject-iOS/FacebookSDK -filelist /Users/xceph/Library/Developer/Xcode/DerivedData/MyProject-dxhidbgfhzkukyeaiirdnjduposm/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MyProject.LinkFileList -mios-simulator-version-min=7.0 -Xlinker -objc_abi_version -Xlinker 2 -all_load -fobjc-link-runtime -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/xceph/Library/Developer/Xcode/DerivedData/MyProject-dxhidbgfhzkukyeaiirdnjduposm/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/MyProject.app.xcent -framework CoreData -framework ShinobiEssentials -lstdc++.6 -framework ShinobiCharts -framework CoreText -lstdc++ -framework ShinobiGauges -framework AVFoundation -licucore -framework OpenGLES -framework CFNetwork -lsqlite3 -framework Foundation -framework UIKit -framework CoreGraphics -framework ExternalAccessory -framework QuartzCore -framework MessageUI -framework SystemConfiguration -framework StoreKit -lPayPalMPL -framework Security -lz.1.1.3 -lGoogleAnalyticsServices -lxml2.2 -framework DropboxSDK -framework FacebookSDK -framework ShinobiGrids -framework Crashlytics -lPods -Xlinker -dependency_info -Xlinker /Users/xceph/Library/Developer/Xcode/DerivedData/MyProject-dxhidbgfhzkukyeaiirdnjduposm/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MyProject_dependency_info.dat -o /Users/xceph/Library/Developer/Xcode/DerivedData/MyProject-dxhidbgfhzkukyeaiirdnjduposm/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MyProject

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_DDASLLogger", referenced from:
      objc-class-ref in AppDelegate_iPhone.o
  "_OBJC_CLASS_$_DDLog", referenced from:
      objc-class-ref in AppDelegate_iPhone.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
MyProject和“Pods”都使用以下设置:

仅生成活动体系结构:否

架构:armv7、arm64、armv7s、x86_64

支持的iOS平台

有效的体系结构:armv7、arm64、armv7s、x86_64

我已经研究过ArhitArchitectures,并且相当支持Architectures


任何帮助都会很感激的

我也遇到了同样的问题,但我解决了这个问题,我通过文件>将文件添加到我的XCode项目中,将“CocoaLumberjack”文件添加到。。。取而代之的是其他方式,如拖放或其他任何方式

基本上,我注意到主要的区别是“cocoalamberjack”文件应该作为编译源包括在内:构建阶段>编译源

当您这样做时,我推荐的方法是XCode自动将它们添加到那里

Ld /Users/xceph/Library/Developer/Xcode/DerivedData/MyProject-dxhidbgfhzkukyeaiirdnjduposm/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MyProject normal x86_64
    cd /Users/xceph/MyProject-iOS
    export IPHONEOS_DEPLOYMENT_TARGET=7.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -L/Users/xceph/Library/Developer/Xcode/DerivedData/MyProject-dxhidbgfhzkukyeaiirdnjduposm/Build/Products/Debug-iphonesimulator -L/Users/xceph/MyProject-iOS -L/Users/xceph/MyProject-iOS/GoogleLibrary -F/Users/xceph/Library/Developer/Xcode/DerivedData/MyProject-dxhidbgfhzkukyeaiirdnjduposm/Build/Products/Debug-iphonesimulator -F/Users/xceph/MyProject-iOS -F/Users/xceph/MyProject-iOS/FacebookSDK -filelist /Users/xceph/Library/Developer/Xcode/DerivedData/MyProject-dxhidbgfhzkukyeaiirdnjduposm/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MyProject.LinkFileList -mios-simulator-version-min=7.0 -Xlinker -objc_abi_version -Xlinker 2 -all_load -fobjc-link-runtime -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/xceph/Library/Developer/Xcode/DerivedData/MyProject-dxhidbgfhzkukyeaiirdnjduposm/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/MyProject.app.xcent -framework CoreData -framework ShinobiEssentials -lstdc++.6 -framework ShinobiCharts -framework CoreText -lstdc++ -framework ShinobiGauges -framework AVFoundation -licucore -framework OpenGLES -framework CFNetwork -lsqlite3 -framework Foundation -framework UIKit -framework CoreGraphics -framework ExternalAccessory -framework QuartzCore -framework MessageUI -framework SystemConfiguration -framework StoreKit -lPayPalMPL -framework Security -lz.1.1.3 -lGoogleAnalyticsServices -lxml2.2 -framework DropboxSDK -framework FacebookSDK -framework ShinobiGrids -framework Crashlytics -lPods -Xlinker -dependency_info -Xlinker /Users/xceph/Library/Developer/Xcode/DerivedData/MyProject-dxhidbgfhzkukyeaiirdnjduposm/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MyProject_dependency_info.dat -o /Users/xceph/Library/Developer/Xcode/DerivedData/MyProject-dxhidbgfhzkukyeaiirdnjduposm/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MyProject

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_DDASLLogger", referenced from:
      objc-class-ref in AppDelegate_iPhone.o
  "_OBJC_CLASS_$_DDLog", referenced from:
      objc-class-ref in AppDelegate_iPhone.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)