如何解决“ld:框架未找到Alamofire”在swift 3
我的项目运行良好,但当我添加alamofire,它不工作。如何解决“ld:框架未找到Alamofire”在swift 3
它给下面的错误
ld: warning: directory not found for option '-F/Users/banglafire/Desktop/mysios/Build/Products/Debug-iphonesimulator/Alamofire' ld: framework not found Alamofire clang: error: linker command failed with exit code 1 (use -v to see invocation)
其他信息
Cocopad版本1.3.1
我荚文件
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'My' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for My
pod 'Alamofire'
end
如何解决这个问题呢?请帮忙!
尝试添加alamofire
荚“Alamofire”版本“〜> 4.5”
然后运行荚安装
之前试过。与版本相同的结果 –
看到这个解决方案,这一定会帮助你.. https:// *。com/a/32620919/3279011 –
你已经更新您的项目文件夹荚?
另请检查您的pod是否正确。
https://github.com/Alamofire/Alamofire
当您在项目中添加一些豆荚,你仍然需要更新您的文件夹中。
尝试使用终端 - >然后去你的文件夹中的项目 - >型pod install
之前尝试过。没有运气 –
你有没有试过看到你的生成设置? 转到您的目标 - >建立设置 - >然后搜索“搜索路径” 你会看到框架搜索路径,是你的豆荚已包含在那。 示例:'$(inherited)“$ PODS_CONFIGURATION_BUILD_DIR/Alamofire' – StevenTan
没有PODS_CONFIGURATION_BUILD_DIR。如何设置。请指导我。 –
我觉得有一些问题,你的波德文件应该是如下:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'My' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'Alamofire', '~> 4.4'
target 'MyTests' do
inherit! :search_paths
# Pods for testing
end
target 'MyUITests' do
inherit! :search_paths
# Pods for testing
end
end
尝试删除波德文件并再次安装pod文件并添加pod,就像这样。希望这可以帮助你。
我最近也遇到过这个问题。 我在这里尝试了很多建议的修复,但是他们中没有一个实际上修复了这个问题。
实际的问题是在应用程序的“生成设置”中设置的值不正确。
每配置构建产品路径设置后:
CONFIGURATION_BUILD_DIR = $(BUILD_DIR)/ $(配置)$(EFFECTIVE_PLATFORM_NAME)
问题得到解决,我的构建成功。
您是否尝试过[在Xcode中的Pod错误“Id:framework not found Pods”](https://*.com/a/31161871/4056108) – chirag90
在工作区中的Pods项目的Pods文件夹中查找Alomafire。如果它不在那里,然后将它添加到你的pod文件,pod install does not work。 –
请检查https://*.com/questions/29865899/ld-framework-not-found-pods –