Coder Social home page Coder Social logo

'AFNetworking.h' file not found问题 about v2ex HOT 4 OPEN

singro avatar singro commented on August 20, 2024
'AFNetworking.h' file not found问题

from v2ex.

Comments (4)

singro avatar singro commented on August 20, 2024

pod 是什么版本呢?

from v2ex.

iijin avatar iijin commented on August 20, 2024

谢谢您的回复啦!我的pod版本是1.0.0。

还有我第一次编译工程的时候就改了工程里的Podfile,因为我每次直接拿down下来的podfile进行 pod install时,会出现如下错误:

Analyzing dependencies
[!] The dependency AFNetworking (> 2.2.0) is not used in any concrete target.
The dependency NYXImagesKit (
> 2.3) is not used in any concrete target.
The dependency FXKeychain (> 1.5) is not used in any concrete target.
The dependency BlocksKit (
> 2.2.0) is not used in any concrete target.
The dependency NSString-Hashes (> 1.2.1) is not used in any concrete target.
The dependency FrameAccessor (
> 1.3.2) is not used in any concrete target.
The dependency MWFeedParser (> 1.0.1) is not used in any concrete target.
The dependency RegexKitLite (
> 4.0) is not used in any concrete target.
The dependency MBProgressHUD (~> 0.8) is not used in any concrete target.

所以我把podfile改成了如下:

platform :ios, '7.0'

inhibit_all_warnings!
use_frameworks!

target 'v2ex' do
pod 'AFNetworking', '> 2.2.0'
pod 'NYXImagesKit', '
> 2.3'
pod 'FXKeychain', '> 1.5'
pod 'BlocksKit', '
> 2.2.0'
pod 'NSString-Hashes', '> 1.2.1'
pod 'FrameAccessor', '
> 1.3.2'
pod 'MWFeedParser', '> 1.0.1'
pod 'RegexKitLite', '
> 4.0'
pod 'MBProgressHUD', '~> 0.8'
end

post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ARCHS'] = 'armv7 arm64'
end
end
end
然后pod install的话,可以执行成功,显示如下:

Setting up CocoaPods master repo
Setup completed
Analyzing dependencies
Downloading dependencies
Using AFNetworking (2.2.4)
Using BlocksKit (2.2.5)
Using FXKeychain (1.5.3)
Using FrameAccessor (1.3.2)
Using MBProgressHUD (0.9.1)
Using MWFeedParser (1.0.1)
Using NSString-Hashes (1.2.2)
Using NYXImagesKit (2.3)
Using RegexKitLite (4.0)
Generating Pods project
Integrating client project
Sending stats
我只对工程的podfile做了修改,剩下的就是您主页里提到的方法改过。
还有就是我觉得我第一个编译只在target是'v2ex'时能成功是因为我改了podfile,但是因为我是初学者,理解学习的不够深刻,可能改的不够完善,所以只在那一种target下成功了。

但是现在都编译不过,我现在也还没找到别的原因。
再谢谢了!~

from v2ex.

singro avatar singro commented on August 20, 2024

现在编不过是什么提示? 刚刚把 Podfile 更新到支持 Cocoapods 1.0 了

from v2ex.

guoxuhui avatar guoxuhui commented on August 20, 2024

我的也出现这个问题,使用更新后的1.0也不行

from v2ex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.