ios


“No such module 'Alamofire'” Xcode won't recognize Alamofire framework


I realize that the same error was asked in other questions (like here), but their solutions are not working for me.
I keep getting a build failure in my app: "No such module 'Alamofire'". I followed the cocoadocs installation instructions (here) for installing Alamofire and it still is not working. I made sure everything has the same deployment target.
Embedded Binaries and Frameworks
Here's my podfile text.
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, ‘9.2’
use_frameworks!
target 'MyApp' do
pod 'Alamofire', '~> 3.0'
end
target 'MyAppTests' do
end
target 'MyAppUITests' do
end
Also, I tried "$ pod install" again in Terminal and got this message:
[!] The `App [Debug]` target overrides the `EMBEDDED_CONTENT_CONTAINS_SWIFT` build setting defined in `Pods/Target Support Files/Pods-App/Pods-App.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
After following Sohil's suggestions, XCode now recognizes the Alamofire module, but 22 new issues have arisen.
Update #2: So I'm now on Xcode 7.3 and Swift 2.2, but I'm receiving a new error with the workspace Link: "ld: framework not found Alamofire. clang: error: linker command failed with exit code 1 (use -v to see invocation)."
Do the following things and you can import any swift file from "Pods"
1) Clean your project
2) Make sure that all your "Pods" > "Build Settings" > "Build Active
Architecture Only" is set to "NO".
3) Don't run, just build your project.
4) Now, import any file from "Pods" to any swift file
E.g.: import Alamofire
5) Again, build project and it will work as expected. Finally, you can
access it properties
Update:
For the updated question, I hope you are using Xcode 7.3 so please update the Alamofire to Swift 2.2
Hope this helps!
Please check this screenshot
and compare to your build setting
may this is helpful to you

Related Links

NSDictionary is nil when I decode with NSKeyedUnarchiver even when passing valid data object
Why are my Parse API requests increasing rapidly each day?
How to check valid url?
Automatic Login in IOS Swift [closed]
In UILabel, multiple strings with multiple colors for each string?
Swift lazy load property Alamofire request
Drag and launch type thing in Swift Sprite Kit?
Extend navigation bar under status bar in interface building
UIBezierPath: byRoundingCorners: doesn't work
How To Change The Title Color of an MFMailComposeViewController?
Preventing UIImagePicker memory problems
CoreData. Manage multiple coordinators, in multi thread, multi context
AVPlayer(ViewController): can not play HLS HD video
Duplicate symbols for architecture when using global constants [duplicate]
iOS: UIWebView display link from website [duplicate]
In App Purchases returns error

Categories

HOME
performance-testing
react-navigation
telerik
push
copy-paste
bluej
axios
python-2.5
lexikjwtauthbundle
sfsafariviewcontroller
jpos
spark-graphx
google-oauth2
padding
esri
pdfa
point-cloud-library
flatbuffers
dapper-fastcrud
pyparsing
pvlib
doctrine-odm
haxm
spring-data-cassandra
increment
ubuntu-server
qweb
ecdsa
worldpay
jpype
dxgi
gradle-tooling-api
log4perl
simple.odata.client
replaygain
infiniband
paypal-webhooks
jquery-ui-accordion
billing
gpt
angular-directive
jeditorpane
ellipsis
balsamiq
cufft
pager
webmail
storage-duration
egl
genetic
kinto
samsung-gear
uat
xirr
appv
axlsx
cbc-mode
crowdflower
solr-boost
android-print-framework
genexus-gam
textmatching
byte-order-mark
openxls
puppet-enterprise
spiceworks
repaint
concurrentdictionary
ash
image-scaling
spread-toolkit
email-spam
youtrack-api
azimuth
nawk
hresult
git-gui
jflow
layout-manager
vote
msxsl
maven-bundle-plugin
cellphone
gemstone
textboxlist
replay
xoom
automapping
drupal-gmap
web-based
versant-vod

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App