中年プログラマーの息抜き

ブログをはじめました。気の向くままにプログラム関連ネタをメモしていきます。

SWIFT3 iOS iPhone xcode APIから画像をPOSTする [Alamofire]

Alamofire導入→コンパイルエラー

Alamofire.framework/Alamofire' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)

「Build Setting -> Enable Bitcode ==>> false」、
「configuration.build_settings['ENABLE_BITCODE'] = 'NO'」→ コンパイルOK

APIから画像をPOST