podspec

CocoaPods制作自己的podspec文件

房东的猫 提交于 2020-11-22 01:23:12
在使用cocoapods进行开发时,都是使用pod search 一些别人的类库,有时候自己在一个项目中封装了自己一些类库,碰到如下情况: 1、 在做其他项目中,发现可以使用之前封装的类库,但是需要进行扩展 2、之前封装的类库,有瑕疵,需要修改代码 以上两种情况,涉及到修改了代码后,怎么在所有的用了这个类库的项目中更新这个类库。其中一个方法时,直接把修改后的文件,复制、粘贴到需要替换的项目中,显然这样做的话,在涉及到的项目少的情况下可以,但是涉及到项目比较多的,影响范围比较广的情况下,可操作性就不强了;那么还有一种方法就是,使用cocoapods进行管理时,在podfile里面添加自己封装的类库,然后需要更新时,执行一个pod install就可以解决这个问题。那么下面介绍就是如何让执行pod search时,可以搜索到自己的代码。 一、在github中新建一个仓库,git clone将代码拉下来,然后添加本地需要操作的类库,并执行如下命令 git tag -a 0.0.1 -m "Tag release 0.0.1” git push -—tags pod spec create 你的podspec文件的文件名 这样就生成了podspec文件,接下来就是需要编辑podspec文件里面的内容,这个文件中有很多是注释,删除注释,填写一些必须的内容,可以参考 http://www

从零开始制作自己的podspec

大兔子大兔子 提交于 2020-11-18 04:21:13
前言:CocoaPods相关资料 Commands: + repo Manage spec-repositories + search Searches for pods + setup Setup the CocoaPods environment + spec Manage pod specs + trunk Interact with the CocoaPods API (e.g. publishing new specs) + try Try a Pod! + update Update outdated project dependencies and create new CocoaPods/Specs CocoaPods Guides $ pod + cache Manipulate the CocoaPods cache + init Generate a Podfile for the current directory. + install Install project dependencies to Podfile.lock versions + ipc Inter-process communication + lib Develop pods + list List pods + outdated Show outdated project

Cocoapods Firebase pods update

做~自己de王妃 提交于 2020-05-16 03:53:06
问题 Good morning, i have a problem with updating my Firebase/Analytics and Firebase/Core pod. My Podfile: source 'https://github.com/CocoaPods/Specs.git' source 'https://github.com/CocoaPods/Specs' platform :ios, '10.0' target 'Unity-iPhone' do pod 'Firebase/Analytics', '5.15.0' pod 'Firebase/Core', '5.15.0' pod 'Firebase/Messaging', '5.1.0' pod 'GoogleAppMeasurement', '5.3.0' pod 'Google-Mobile-Ads-SDK', '~> 7.0' end if i run pod install i get the following output Analyzing dependencies [!]

Why is my library not able to expand on the CocoaPods website?

流过昼夜 提交于 2020-02-27 19:15:19
问题 I'm trying to access my library's information through the CocoaPods website, but I'm not able to. All the other libraries seem to be able to expand (mine is MKWeatherUndergroundKit) Here is my podspec Pod::Spec.new do |s| s.name = "MKWeatherUndergroundKit" s.version = "0.6" s.summary = "A simple iOS and OS X library for retrieving weather information using the Weather Underground API" s.homepage = "https://github.com/MendyK/MKWeatherUndergroundKit" s.license = { :type => "MIT", :file =>

Why is my library not able to expand on the CocoaPods website?

生来就可爱ヽ(ⅴ<●) 提交于 2020-02-27 19:14:39
问题 I'm trying to access my library's information through the CocoaPods website, but I'm not able to. All the other libraries seem to be able to expand (mine is MKWeatherUndergroundKit) Here is my podspec Pod::Spec.new do |s| s.name = "MKWeatherUndergroundKit" s.version = "0.6" s.summary = "A simple iOS and OS X library for retrieving weather information using the Weather Underground API" s.homepage = "https://github.com/MendyK/MKWeatherUndergroundKit" s.license = { :type => "MIT", :file =>

Undefined symbols for architecture x86_64 : referenced from: _YGConfigNew in libyoga.a(Yoga.o)

∥☆過路亽.° 提交于 2020-01-05 05:00:09
问题 Xcode Version - 10.0 React-Native - 0.57.8 Undefined symbols for architecture x86_64: "YGConfig::YGConfig(int ( )(YGConfig , YGNode*, YGLogLevel, char const*, __va_list_tag*))", referenced from: _YGConfigNew in libyoga.a(Yoga.o) Please help Thanks. 来源: https://stackoverflow.com/questions/54320321/undefined-symbols-for-architecture-x86-64-referenced-from-ygconfignew-in-lib

Development CocoaPod for both iOS and OSX

六眼飞鱼酱① 提交于 2019-12-22 05:25:14
问题 I've got a CocoaPod published for iOS and want to make it available on OS X as well. I've fixed up my PodSpec so that it's ready for both iOS and Mac OS X: Pod::Spec.new do |s| s.name = "EveryoneAPI" s.version = "0.9.5" s.summary = "An objective-c wrapper for EveryoneAPI.com's API" s.description = <<-DESC To retrieve all information for EveryoneAPI use the following: EveryoneAPI *everyoneAPI = [[EveryoneAPI alloc] initWithAccountSID:@"ACb8444c3013dc40518e46b48c91f82ba0" withAuthToken:@

How to use local-only project via CocoaPods

扶醉桌前 提交于 2019-12-20 02:06:35
问题 I am struggling to find a way to package an Xcode framework we created as a Pod that would only be used internally (not public, not on github). How do I modify the .podspec to build the SDK from the local Xcode project on my development machine? 回答1: Short answer: you don't use the .podspec for this. Longer: the .podfile is mainly for specifying: external dependencies what to snarf out of the project, relative to the project folder IIRC, other than some informational metadata, the .podspec

Xcode Workspace - Not finding imports from framework development pod

南笙酒味 提交于 2019-12-12 06:27:48
问题 I've set up a workspace with two Swift projects in it: one a framework I'm developing, the other a demo app for the framework. Podfile looks like this: platform :ios, '9.0' workspace 'foo.xcworkspace' target 'framework' do project 'framework.xcodeproj' end target :'demo' do project 'demo/demo.xcodeproj' pod 'framework', :path => 'framework.podspec' end the .podspec file looks like this: Pod::Spec.new do |s| s.name = 'framework' s.authors = { "foo author" } s.version = '0.1.0' s.summary = 'foo

Cocoapods Private Spec Repo over HTTP/S3

人盡茶涼 提交于 2019-12-12 03:16:32
问题 We are looking at implementing a private specs repo for our commercial libraries, to be shared with external customers (i.e. it's a 'semi' private spec repo). Is there currently a way to use HTTP (or more specifically S3) to host a spec repo? We don't have a public git repo (and due to it being a licensed product, putting it onto GitHub isn't really an option unfortunately). There are some guides around pushing a git repo to S3, which looks promising, but it would be great to have native