質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Xcode 7

Xcode 7は、ソフトウェア開発のためのアップルの統合開発環境であるXcodeのバージョン。UIを作成するために用いるグラフィカルツールです。iOS9/OS X El Capitan/watchOS2に対応。Swift 2コンパイラーが搭載されています。

Swift

Swiftは、アップルのiOSおよびOS Xのためのプログラミング言語で、Objective-CやObjective-C++と共存することが意図されています

Q&A

1回答

1578閲覧

Alamofireがxcode7.3に移植してからおかしくなった。

mk_ko

総合スコア8

Xcode 7

Xcode 7は、ソフトウェア開発のためのアップルの統合開発環境であるXcodeのバージョン。UIを作成するために用いるグラフィカルツールです。iOS9/OS X El Capitan/watchOS2に対応。Swift 2コンパイラーが搭載されています。

Swift

Swiftは、アップルのiOSおよびOS Xのためのプログラミング言語で、Objective-CやObjective-C++と共存することが意図されています

0グッド

0クリップ

投稿2016/04/28 07:03

###前提・実現したいこと
Xcode7.2から7.3に移植したコードのバグを直しているうちに、Alamofireのエラーにぶつかった。

###発生している問題・エラーメッセージ

"Alamofire.upload (Alamofire.Method, Alamofire.URLStringConvertible, headers : [Swift.String : Swift.String]?, multipartFormData : (Alamofire.MultipartFormData) -> (), encodingMemoryThreshold : Swift.UInt64, encodingCompletion : (Alamofire.Manager.MultipartFormDataEncodingResult) -> ()?) -> ()", referenced from: "Alamofire.request (Alamofire.Method, Alamofire.URLStringConvertible, parameters : [Swift.String : Swift.AnyObject]?, encoding : Alamofire.ParameterEncoding, headers : [Swift.String : Swift.String]?) -> Alamofire.Request", referenced from: "Alamofire.Request.responseJSON (queue : __ObjC.OS_dispatch_queue?, options : __C.NSJSONReadingOptions, completionHandler : (Alamofire.Response<Swift.AnyObject, __ObjC.NSError>) -> ()) -> Self", referenced from: "Alamofire.Result.value.getter : A?", referenced from: "Alamofire.(upload (Alamofire.Method, Alamofire.URLStringConvertible, headers : [Swift.String : Swift.String]?, multipartFormData : (Alamofire.MultipartFormData) -> (), encodingMemoryThreshold : Swift.UInt64, encodingCompletion : (Alamofire.Manager.MultipartFormDataEncodingResult) -> ()?) -> ()).(default argument 2)", referenced from: "Alamofire.(upload (Alamofire.Method, Alamofire.URLStringConvertible, headers : [Swift.String : Swift.String]?, multipartFormData : (Alamofire.MultipartFormData) -> (), encodingMemoryThreshold : Swift.UInt64, encodingCompletion : (Alamofire.Manager.MultipartFormDataEncodingResult) -> ()?) -> ()).(default argument 4)", referenced from: "Alamofire.(request (Alamofire.Method, Alamofire.URLStringConvertible, parameters : [Swift.String : Swift.AnyObject]?, encoding : Alamofire.ParameterEncoding, headers : [Swift.String : Swift.String]?) -> Alamofire.Request).(default argument 3)", referenced from: "Alamofire.(request (Alamofire.Method, Alamofire.URLStringConvertible, parameters : [Swift.String : Swift.AnyObject]?, encoding : Alamofire.ParameterEncoding, headers : [Swift.String : Swift.String]?) -> Alamofire.Request).(default argument 4)", referenced from: "Alamofire.Request.(responseJSON (queue : __ObjC.OS_dispatch_queue?, options : __C.NSJSONReadingOptions, completionHandler : (Alamofire.Response<Swift.AnyObject, __ObjC.NSError>) -> ()) -> Self).(default argument 1)", referenced from: "Alamofire.Request.(responseJSON (queue : __ObjC.OS_dispatch_queue?, options : __C.NSJSONReadingOptions, completionHandler : (Alamofire.Response<Swift.AnyObject, __ObjC.NSError>) -> ()) -> Self).(default argument 0)", referenced from: "generic type metadata pattern for Alamofire.Result", referenced from: "generic type metadata pattern for Alamofire.Response", referenced from: clang: error: linker command failed with exit code 1 (use -v to see invocation)

###試したこと
alamofireのバージョンを3.3にしてpod set upなど試したが失敗。

###補足情報(言語/FW/ツール等のバージョンなど)
xcode7.3
alamofire3.3
*他にも何か手がかりになる情報があれば教えてください。upします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

alamofireのバージョンを3.3にしてpod set upなど試したが失敗。

setupではなく、

pod update

して下さい。

投稿2016/04/28 07:22

fuzzball

総合スコア16731

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

mk_ko

2016/04/28 07:49

pod updateをした後に、buildしてみましたがダメでした。。
mk_ko

2016/04/28 07:50

他に解決手段はありますか?
fuzzball

2016/04/28 08:30

Q1. Clean(Clean Build Folder推奨)しても同じでしょうか? Q2. 他に使っているライブラリはあるでしょうか?(Podfileの内容を教えて下さい)
mk_ko

2016/04/28 09:03

# Uncomment this line to define a global platform for your project platform :ios, '8.0' # Uncomment this line if you're using Swift use_frameworks! target 'moglly' do pod 'GoogleMaps' pod ‘Alamofire’ pod ‘KMPlaceholderTextView’ pod ‘IDMPhotoBrowser’ pod ‘SDWebImage’ pod ‘pop’ pod ‘DACircularProgress’ pod 'MBProgressHUD' pod 'JSQMessagesViewController' pod 'Firebase' pod ‘KCKeyboardImagePicker’ pod 'AWSCore' pod 'AWSAutoScaling' pod 'AWSCloudWatch' pod 'AWSDynamoDB' pod 'AWSEC2' pod 'AWSElasticLoadBalancing' pod 'AWSKinesis' pod 'AWSS3' pod 'AWSSES' pod 'AWSSimpleDB' pod 'AWSSNS' pod 'AWSSQS' pod 'AWSCognito' end target 'Tests' do end target 'UITests' do end
fuzzball

2016/04/28 09:36

これって、Alamofireで出てるエラーではなく、Alamofireを使っている他のライブラリで出てるエラーではないでしょうか?
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問