2016-08-11 2 views
1

У меня есть проект iOS, над которым я работаю. Последнее, что я сделал, - это архивирование рабочей версии приложения и загрузка в магазин приложений.Ошибки компиляции Cocoapods/Eureka: команда компоновщика завершилась с выходом 1

С тех пор я вновь открыл проект и обнаружил, что не могу скомпилировать проект, несмотря на то, что он не внес изменений.

Я попытался: создать новую схему для этой цели, добавив фреймворк Eureka к «Ссылка на двоичные файлы с библиотеками» на этапах сборки, удалив структуру Eureka и добавив ее снова в Cocoapods.

Я недавно изменил название продукта, но после этого смог скомпилировать и архивировать приложение.

ошибки компиляции:

Ld /Users/iMac2/Library/Developer/Xcode/DerivedData/ParentNews-geljdkdldttkfccjdbidfttuyfho/Build/Products/Debug-iphonesimulator/ParentNews.app/ParentNews normal x86_64 
cd /Users/iMac2/Desktop/ParentNews 
export IPHONEOS_DEPLOYMENT_TARGET=8.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.3.sdk -L/Users/iMac2/Library/Developer/Xcode/DerivedData/ParentNews-geljdkdldttkfccjdbidfttuyfho/Build/Products/Debug-iphonesimulator -F/Users/iMac2/Library/Developer/Xcode/DerivedData/ParentNews-geljdkdldttkfccjdbidfttuyfho/Build/Products/Debug-iphonesimulator -F/Users/iMac2/Library/Developer/Xcode/DerivedData/ParentNews-geljdkdldttkfccjdbidfttuyfho/Build/Products/Debug-iphonesimulator/Eureka -filelist /Users/iMac2/Library/Developer/Xcode/DerivedData/ParentNews-geljdkdldttkfccjdbidfttuyfho/Build/Intermediates/ParentNews.build/Debug-iphonesimulator/ParentNews.build/Objects-normal/x86_64/ParentNews.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=8.0 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -framework Eureka -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/iMac2/Library/Developer/Xcode/DerivedData/ParentNews-geljdkdldttkfccjdbidfttuyfho/Build/Intermediates/ParentNews.build/Debug-iphonesimulator/ParentNews.build/Objects-normal/x86_64/ParentNews.swiftmodule -framework Pods_ParentNews -Xlinker -dependency_info -Xlinker /Users/iMac2/Library/Developer/Xcode/DerivedData/ParentNews-geljdkdldttkfccjdbidfttuyfho/Build/Intermediates/ParentNews.build/Debug-iphonesimulator/ParentNews.build/Objects-normal/x86_64/ParentNews_dependency_info.dat -o /Users/iMac2/Library/Developer/Xcode/DerivedData/ParentNews-geljdkdldttkfccjdbidfttuyfho/Build/Products/Debug-iphonesimulator/ParentNews.app/ParentNews 
ld: warning: ignoring file /Users/iMac2/Library/Developer/Xcode/DerivedData/ParentNews-geljdkdldttkfccjdbidfttuyfho/Build/Products/Debug-iphonesimulator/Eureka.framework/Eureka, file was built for i386 which is not the architecture being linked (x86_64): /Users/iMac2/Library/Developer/Xcode/DerivedData/ParentNews-geljdkdldttkfccjdbidfttuyfho/Build/Products/Debug-iphonesimulator/Eureka.framework/Eureka 
Undefined symbols for architecture x86_64: 
"_OBJC_METACLASS_$__TtC6Eureka18FormViewController", referenced from: 
    _OBJC_METACLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.viewDidLoad() ->()", referenced from: 
    ParentNews.FilterController.viewDidLoad() ->() in FilterController.o 
"Eureka.FormViewController.viewWillAppear (Swift.Bool) ->()", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.prepareForSegue (__ObjC.UIStoryboardSegue, sender : Swift.AnyObject?) ->()", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.viewDidDisappear (Swift.Bool) ->()", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.textInputShouldClear <A where A: Swift.Equatable> (__ObjC.UITextInput, cell : Eureka.Cell<A>) -> Swift.Bool", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.textInputShouldReturn <A where A: Swift.Equatable> (__ObjC.UITextInput, cell : Eureka.Cell<A>) -> Swift.Bool", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.deleteAnimationForRows ([Eureka.BaseRow]) -> __C.UITableViewRowAnimation", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.insertAnimationForRows ([Eureka.BaseRow]) -> __C.UITableViewRowAnimation", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.reloadAnimationOldRows ([Eureka.BaseRow], newRows : [Eureka.BaseRow]) -> __C.UITableViewRowAnimation", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.rowValueHasBeenChanged (Eureka.BaseRow, oldValue : protocol<>?, newValue : protocol<>?) ->()", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.textInputDidEndEditing <A where A: Swift.Equatable> (__ObjC.UITextInput, cell : Eureka.Cell<A>) ->()", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.inputAccessoryViewForRow (Eureka.BaseRow) -> __ObjC.UIView?", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.textInputDidBeginEditing <A where A: Swift.Equatable> (__ObjC.UITextInput, cell : Eureka.Cell<A>) ->()", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.textInputShouldEndEditing <A where A: Swift.Equatable> (__ObjC.UITextInput, cell : Eureka.Cell<A>) -> Swift.Bool", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.deleteAnimationForSections ([Eureka.Section]) -> __C.UITableViewRowAnimation", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.insertAnimationForSections ([Eureka.Section]) -> __C.UITableViewRowAnimation", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.reloadAnimationOldSections ([Eureka.Section], newSections : [Eureka.Section]) -> __C.UITableViewRowAnimation", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.textInputShouldBeginEditing <A where A: Swift.Equatable> (__ObjC.UITextInput, cell : Eureka.Cell<A>) -> Swift.Bool", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.textInput <A where A: Swift.Equatable> (__ObjC.UITextInput, shouldChangeCharactersInRange : __C._NSRange, replacementString : Swift.String, cell : Eureka.Cell<A>) -> Swift.Bool", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.init (coder : __ObjC.NSCoder) -> Eureka.FormViewController?", referenced from: 
    ParentNews.FilterController.init (coder : __ObjC.NSCoder) -> ParentNews.FilterController? in FilterController.o 
"Eureka.FormViewController.init (style : __C.UITableViewStyle) -> Eureka.FormViewController", referenced from: 
    ParentNews.FilterController.init (style : __C.UITableViewStyle) -> ParentNews.FilterController in FilterController.o 
"Eureka.FormViewController.init (nibName : Swift.String?, bundle : __ObjC.NSBundle?) -> Eureka.FormViewController", referenced from: 
    ParentNews.FilterController.init (nibName : Swift.String?, bundle : __ObjC.NSBundle?) -> ParentNews.FilterController in FilterController.o 
"Eureka.FormViewController.navigationOptions.getter : Eureka.RowNavigationOptions?", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.navigationAccessoryView.getter : Eureka.NavigationAccessoryView", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.form.getter : Eureka.Form", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.tableView.getter : __ObjC.UITableView?", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.(oldBottomInset in _1131D9CFD9D297ADC9C1EFB9DC530585).getter : CoreGraphics.CGFloat?", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.(tableViewStyle in _1131D9CFD9D297ADC9C1EFB9DC530585).getter : __C.UITableViewStyle", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.(_form in _1131D9CFD9D297ADC9C1EFB9DC530585).getter : Eureka.Form", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.navigationOptions.materializeForSet : Eureka.RowNavigationOptions?", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.form.materializeForSet : Eureka.Form", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.tableView.materializeForSet : __ObjC.UITableView?", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.(oldBottomInset in _1131D9CFD9D297ADC9C1EFB9DC530585).materializeForSet : CoreGraphics.CGFloat?", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.(tableViewStyle in _1131D9CFD9D297ADC9C1EFB9DC530585).materializeForSet : __C.UITableViewStyle", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.navigationOptions.setter : Eureka.RowNavigationOptions?", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.navigationAccessoryView.setter : Eureka.NavigationAccessoryView", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.form.setter : Eureka.Form", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.tableView.setter : __ObjC.UITableView?", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.(oldBottomInset in _1131D9CFD9D297ADC9C1EFB9DC530585).setter : CoreGraphics.CGFloat?", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.(tableViewStyle in _1131D9CFD9D297ADC9C1EFB9DC530585).setter : __C.UITableViewStyle", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.FormViewController.(_form in _1131D9CFD9D297ADC9C1EFB9DC530585).setter : Eureka.Form", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"Eureka.Section.__allocating_init (Swift.String, (Eureka.Section) ->()) -> Eureka.Section", referenced from: 
    ParentNews.FilterController.viewDidLoad() ->() in FilterController.o 
"(extension in Eureka):Eureka.RowType<A where A: Eureka.BaseRow, A: Eureka.RowType, A: Eureka.TypedRowType, A.Value == A.Cell.Value>.onChange ((A) ->()) -> A", referenced from: 
    ParentNews.FilterController.viewDidLoad() ->() in FilterController.o 
"(extension in Eureka):Eureka.RowType<A where A: Eureka.BaseRow, A: Eureka.RowType, A: Eureka.TypedRowType, A.Value == A.Cell.Value>.init (Swift.String?, (A) ->()) -> A", referenced from: 
    ParentNews.FilterController.viewDidLoad() ->() in FilterController.o 
"Eureka.Section.(init (Swift.String, (Eureka.Section) ->()) -> Eureka.Section).(default argument 1)", referenced from: 
    ParentNews.FilterController.viewDidLoad() ->() in FilterController.o 
"(extension in Eureka):Eureka.RowType<A where A: Eureka.BaseRow, A: Eureka.RowType, A: Eureka.TypedRowType, A.Value == A.Cell.Value>.(init (Swift.String?, (A) ->()) -> A).(default argument 0)", referenced from: 
    ParentNews.FilterController.viewDidLoad() ->() in FilterController.o 
"type metadata for Eureka.FormViewController", referenced from: 
    _OBJC_CLASS_$__TtC10ParentNews16FilterController in FilterController.o 
"type metadata accessor for Eureka.Form", referenced from: 
    ParentNews.FilterController.viewDidLoad() ->() in FilterController.o 
    type metadata accessor for Swift.IndexingGenerator<Eureka.Form> in FilterController.o 
    type metadata accessor for Swift.MutableSlice<Eureka.Form> in FilterController.o 
"type metadata accessor for Eureka.Section", referenced from: 
    ParentNews.FilterController.viewDidLoad() ->() in FilterController.o 
    type metadata accessor for Swift.IndexingGenerator<Eureka.Form> in FilterController.o 
    type metadata accessor for Swift.MutableSlice<Eureka.Form> in FilterController.o 
    type metadata accessor for Swift.IndexingGenerator<Swift.MutableSlice<Eureka.Form>> in FilterController.o 
"type metadata accessor for Eureka.CheckRow", referenced from: 
    ParentNews.FilterController.viewDidLoad() ->() in FilterController.o 
    lazy protocol witness table accessor for type Eureka.CheckRow and conformance <A, B where B: Eureka.BaseCell, B: Eureka.CellType, B: Eureka.TypedCellType, A == B.Value> Eureka.Row<A, B> : Eureka.TypedRowType in Eureka in FilterController.o 
"type metadata accessor for Eureka.CheckCell", referenced from: 
    ParentNews.FilterController.viewDidLoad() ->() in FilterController.o 
    lazy protocol witness table accessor for type Eureka.CheckCell and conformance <A where A: Swift.Equatable> Eureka.Cell<A> : Eureka.TypedCellType in Eureka in FilterController.o 
"protocol witness table for Eureka.Form : Swift.CollectionType in Eureka", referenced from: 
    ParentNews.FilterController.viewDidLoad() ->() in FilterController.o 
"protocol witness table for Eureka.Form : Swift.MutableIndexable in Eureka", referenced from: 
    type metadata accessor for Swift.MutableSlice<Eureka.Form> in FilterController.o 
"protocol witness table for Eureka.Form : Swift.Indexable in Eureka", referenced from: 
    type metadata accessor for Swift.IndexingGenerator<Eureka.Form> in FilterController.o 
"protocol witness table for Eureka.CheckRow : Eureka.RowType in Eureka", referenced from: 
    ParentNews.FilterController.viewDidLoad() ->() in FilterController.o 
"protocol witness table accessor for <A, B where B: Eureka.BaseCell, B: Eureka.CellType, B: Eureka.TypedCellType, A == B.Value> Eureka.Row<A, B> : Eureka.TypedRowType in Eureka", referenced from: 
    lazy protocol witness table accessor for type Eureka.CheckRow and conformance <A, B where B: Eureka.BaseCell, B: Eureka.CellType, B: Eureka.TypedCellType, A == B.Value> Eureka.Row<A, B> : Eureka.TypedRowType in Eureka in FilterController.o 
"protocol witness table accessor for <A where A: Swift.Equatable> Eureka.Cell<A> : Eureka.TypedCellType in Eureka", referenced from: 
    lazy protocol witness table accessor for type Eureka.CheckCell and conformance <A where A: Swift.Equatable> Eureka.Cell<A> : Eureka.TypedCellType in Eureka in FilterController.o 
"static Eureka.<<< infix (Eureka.Section, Eureka.BaseRow) -> Eureka.Section", referenced from: 
    ParentNews.FilterController.viewDidLoad() ->() in FilterController.o 
"static Eureka.+++ infix (Eureka.Form, Eureka.Section) -> Eureka.Form", referenced from: 
    ParentNews.FilterController.viewDidLoad() ->() in FilterController.o 
ld: symbol(s) not found for architecture x86_64 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

ответ

0

Проверить ниже вещи.

(1) Никакой каркас или .a отсутствует в проекте. (Когда он добавляется 1 раз в проект, возможно, он не скопирован в папку проекта, поэтому, когда вы архивируете и архивируете в другом месте, он не получает ссылку из местоположения))

(2) Путь поиска каркаса - добавить строку ниже.

$ (project_dir)/ProjectName/WhichEverIsYourFrameWork (Путь ДО .a файла)

(3) Удалить эту структуру, удалить рамки поиска пути, теперь просто перетащить его в корне, поиск файла структура будет создавать автоматически.

Добавление

(4) При изменении места, где были установлены cocoapods то вам придется стрелять снова команду на новое место, чтобы снова установить команду. Очистить и построить его.

+0

Этот совет подходит для cocoapods? Я не могу найти Eureka.framework в моем проекте. может ли это быть проблемой? –

+0

Да, проверьте дополнение в моем ответе. – Hasya

 Смежные вопросы

  • Нет связанных вопросов^_^