2014-10-19 15 views
5

Tôi không biết làm thế nào tôi nhận được rất nhiều lỗi. Tôi cập nhật mac của mình lên Yosemite, cập nhật ca cao của tôi đã cài đặt nhóm.các biểu tượng được xác định cho kiến ​​trúc i386: Sau khi cập nhật Yosemit và Pod install

Tôi cảm thấy tồi tệ vì có rất nhiều câu hỏi tương tự nhưng tôi không thể tìm thấy bất kỳ câu hỏi nào có vẻ liên quan. Tôi đã cố gắng cập nhật cài đặt lại cụm ca cao. xóa các tệp pod và thực hiện init pod, kiểm tra kiến ​​trúc của tôi có kiến ​​trúc tiêu chuẩn armvs6, armvs7. Tôi thực sự bối rối ở đây.

defined symbols for architecture i386: 
    "_OBJC_CLASS_$_AFHTTPRequestOperation", referenced from: 
     objc-class-ref in LoginController.o 
    "_OBJC_CLASS_$_AFHTTPRequestOperationManager", referenced from: 
     objc-class-ref in ChatController.o 
     objc-class-ref in TutorSessionViewController.o 
     objc-class-ref in StudentSessionManager.o 
     objc-class-ref in TutorSessionManager.o 
     objc-class-ref in Device.o 
     objc-class-ref in RequestHandler.o 
     objc-class-ref in TutorMapController.o 
     ... 
    "_OBJC_CLASS_$_AFJSONRequestSerializer", referenced from: 
     objc-class-ref in ChatController.o 
     objc-class-ref in TutorSessionViewController.o 
     objc-class-ref in StudentSessionManager.o 
     objc-class-ref in TutorSessionManager.o 
     objc-class-ref in Device.o 
     objc-class-ref in RequestHandler.o 
     objc-class-ref in TutorMapController.o 
     ... 
    "_OBJC_CLASS_$_AMTagView", referenced from: 
     objc-class-ref in ProfileController.o 
    "_OBJC_CLASS_$_APNavigationController", referenced from: 
     objc-class-ref in StudentSessionManager.o 
     objc-class-ref in TutorSessionManager.o 
    "_OBJC_CLASS_$_FUIButton", referenced from: 
     _OBJC_CLASS_$_GreenButton in GreenButton.o 
     _OBJC_CLASS_$_RedButton in RedButton.o 
    "_OBJC_CLASS_$_JSBubbleImageViewFactory", referenced from: 
     objc-class-ref in ChatController.o 
    "_OBJC_CLASS_$_JSBubbleView", referenced from: 
     objc-class-ref in ChatController.o 
    "_OBJC_CLASS_$_JSMessage", referenced from: 
     _OBJC_CLASS_$_TreeMessage in Treemessage.o 
    "_OBJC_CLASS_$_JSMessagesViewController", referenced from: 
     _OBJC_CLASS_$_ChatController in ChatController.o 
    "_OBJC_CLASS_$_NZCircularImageView", referenced from: 
     objc-class-ref in ChatController.o 
    "_OBJC_CLASS_$_PKImagePickerViewController", referenced from: 
     objc-class-ref in SignUpPhotoTableViewCell.o 
    "_OBJC_CLASS_$_RATreeView", referenced from: 
     objc-class-ref in SubjectViewController.o 
    "_OBJC_CLASS_$_RNBlurModalView", referenced from: 
     objc-class-ref in TutorOptions.o 
     objc-class-ref in ChatController.o 
     objc-class-ref in CHTumblrMenuView.o 
     objc-class-ref in SubjectAddViewController.o 
    "_OBJC_CLASS_$_SDImageCache", referenced from: 
     objc-class-ref in ProfileSetting.o 
     objc-class-ref in JAAppDelegate.o 
    "_OBJC_CLASS_$_SRHubConnection", referenced from: 
     objc-class-ref in JAAppDelegate.o 
    "_OBJC_CLASS_$_SVProgressHUD", referenced from: 
     objc-class-ref in TutorOptions.o 
     objc-class-ref in ChatController.o 
     objc-class-ref in JALeftViewController.o 
     objc-class-ref in UserProfileView.o 
     objc-class-ref in RequestHandler.o 
     objc-class-ref in TimerSessionController.o 
     objc-class-ref in SplashViewController.o 
     ... 
    "_OBJC_CLASS_$_TWMessageBarManager", referenced from: 
     objc-class-ref in MessangeHandler.o 
    "_OBJC_METACLASS_$_FUIButton", referenced from: 
     _OBJC_METACLASS_$_GreenButton in GreenButton.o 
     _OBJC_METACLASS_$_RedButton in RedButton.o 
    "_OBJC_METACLASS_$_JSMessage", referenced from: 
     _OBJC_METACLASS_$_TreeMessage in Treemessage.o 
    "_OBJC_METACLASS_$_JSMessagesViewController", referenced from: 
     _OBJC_METACLASS_$_ChatController in ChatController.o 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

Đây là Podfile tôi

source 'https://github.com/CocoaPods/Specs.git' 

target 'StudyTree' do 

pod 'JSMessagesViewController' 
pod 'XHRealTimeBlur' 
pod 'PKImagePicker', '~> 0.0.3' 
pod 'SVProgressHUD', :head 
pod 'RMStepsController', '~> 1.0.1' 
pod 'TWMessageBarManager', '~> 1.7.0' 
pod 'TTCounterLabel' 
pod 'RATreeView', '~> 0.2.2' 


pod 'AFPopupView', '~> 1.0' 
pod 'AMTagListView' 
pod 'RNBlurModalView', '~> 0.1.0' 
pod 'BPForms' 
pod 'SignalR-ObjC', :git=>'https://github.com/DyKnow/SignalR-ObjC.git', :branch => 'feature-2.0.0.beta1' 
pod 'APDropDownNavToolbar', '~> 1.1' 
pod 'FlatUIKit' 
pod 'NZCircularImageView', '~> 0.0.4' 
xcodeproj '/Users/ethankeiser/WorkSpace/test/StudyTree/StudyTree.xcodeproj' 
end 

EDIT

Vì vậy, tôi loại bỏ tất cả Linker khác Flag và thay thế nó bằng $ (di truyền) và tôi vẫn có được điều này.

[!] The `StudyTree [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-StudyTree/Pods-StudyTree.debug.xcconfig'. This can lead to problems with the CocoaPods installation 
    - Use the `$(inherited)` flag, or 
    - Remove the build settings from the target. 

[!] The `StudyTree [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-StudyTree/Pods-StudyTree.release.xcconfig'. This can lead to problems with the CocoaPods installation 
    - Use the `$(inherited)` flag, or 
    - Remove the build settings from the target. 

Trả lời

23

Trong Cài đặt xây dựng, tìm "Cờ liên kết khác". Nếu nó được in đậm, chọn nó và nhấn backspace, nó sẽ trở lại trạng thái bình thường của nó. Nếu nó không cố định, xóa tất cả các cờ, sau đó loại bỏ và cài đặt lại Pod.

+0

cảm ơn! Điều này giải quyết vấn đề của tôi! Tôi thực sự không biết tại sao đôi khi táo lại làm những điều này .. – fustalol

+0

Tôi ngạc nhiên với câu trả lời này! – SteBra

1

Tôi đã có một loạt rất giống lỗi xây dựng thử nghiệm của tôi mà sử dụng OCHamcrest và OCMock, ví dụ .:

Undefined symbols for architecture i386: 
    "_HC_assertThatLongLongWithLocation", referenced from: 
     -[WNGLoggerTests test_convertToMetricMessage_constructs_a_proper_metric] in loggerTests.o 
    "_HC_assertThatUnsignedIntegerWithLocation", referenced from: 
     -[WNGLoggerTests test_timerCount_reports_the_correct_number_of_timers_in_progress] in loggerTests.o 
    "_OBJC_CLASS_$_OCMockObject", referenced from: 
     objc-class-ref in LoggingConnectionDelegateTests.o 
     objc-class-ref in loggerTests.o 

nhưng giải pháp là khác nhau cho kịch bản của tôi.

Trong khi điều tra, tôi đã xác minh rằng các công cụ dòng lệnh XCode 6.0.1 đã được cài đặt và có vẻ như mọi thứ đã ổn.

Tuy nhiên, giải pháp của tôi là để (lại) cài đặt các công cụ XCode Command-Line với:

xcode-select --install 

tôi thấy nó rất hữu ích để sử dụng chính xác cùng một phiên bản của CocoaPods (0.33.1) và lưu ý sự khác biệt trong xctool giữa môi trường cục bộ của tôi (0.2.2) và Travis (0.2).

Tôi tin rằng tôi vẫn gặp phải https://github.com/facebook/xctool/issues/380 trên TravisCI, vẫn còn mở https://github.com/travis-ci/travis-ci/issues/2841.

Lưu ý rằng mọi thứ đã hoạt động tốt trong XCode 6 trước khi nâng cấp từ Mavericks lên Yosemite.

Các vấn đề liên quan