GDataXMLNode_iOS 3.1.0

GDataXMLNode_iOS 3.1.0

MichaelLedger 维护。



  • 编写者:
  • Mountain Xiang

GDataXML

支持 GDataXML 的 CocoaPods,创建带有自动换行和 CDATA 格式的 XML。

<?xml version="1.0" encoding="UTF-8"?>
<PEOPLE ID="123456">
  <TEST><![CDATA[You will see this in the document and can use reserved characters like < > & ""]]></TEST>
  <NAME>张三</NAME>
  <AGE>18</AGE>
  <SEX>MAN</SEX>
</PEOPLE>

使用 CocoaPods 安装

CocoaPods 是 Objective-C 的依赖管理器,能够自动化和简化使用 GDataXMLNode_iOS 等第三方库的过程。

您可以运行以下命令来安装它

$ gem install cocoapods

构建 GDataXMLNode_iOS 3.1.0+ 需要 CocoaPods 0.39.0+。

Podfile

要使用 CocoaPods 将 GDataXMLNode_iOS 集成到您的 Xcode 项目中,请在您的 Podfile 中指定它

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '6.0'

target 'TargetName' do
pod 'GDataXMLNode_iOS', '~> 3.1.0'
end

然后,运行以下命令

$ pod install

终端命令

$ pod spec create GDataXMLNode
$ pod lib lint --allow-warnings
$ git config --list
$ git config remote.origin.url https://[email protected]/MichaelLedger/GDataXML.git

# new tag version equal to podspec spec.version 
$ git tag 1.0.0
$ git push origin 1.0.0

将 /Users/user/.ssh/id_rsa.pub 添加到 Github->Settings->SSH and GPG keys 以解决问题:[email protected]:拒绝访问(publickey)并使用以下命令进行验证

$ ssh [email protected]

$ pod trunk push GDataXMLNode.podspec

验证podspec -> GDataXMLNode (1.0.0) - 备注 | xcodebuild: 备注:使用新构建系统 - 备注 | [iOS] xcodebuild: 备注:计划构建 - 备注 | [iOS] xcodebuild: 备注:构建描述 - 备注 | [iOS] xcodebuild: 警告:跳过代码签名,因为目标没有Info.plist文件,并且不会自动生成。 (位于项目'App'中的目标'App')

[!] 认证令牌无效或未经验证。请使用发送的电子邮件进行验证,或者注册新会话。

$ pod trunk register '[email protected]' 'MichaelLedger' --description='mac pro'
[!] Please verify the session by clicking the link in the verification email that has been sent to [email protected]
$ pod trunk push GDataXMLNode.podspec
[!] You ([email protected]) are not allowed to push new versions for this pod. The owners of this pod are [email protected].
$ pod trunk push GDataXMLNode_iOS.podspec
/Users/mxr/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.7.4/lib/cocoapods/executable.rb:93: warning: Insecure world writable dir /Users/mxr in PATH, mode 040777
Updating spec repo `master`

CocoaPods 1.9.1 is available.
To update use: `gem install cocoapods`

For more information, see https://blog.cocoapods.org.cn and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.9.1

Validating podspec
 -> GDataXMLNode_iOS (1.1.0)
    - NOTE  | xcodebuild:  note: Using new build system
    - NOTE  | [iOS] xcodebuild:  note: Planning build
    - NOTE  | [iOS] xcodebuild:  note: Constructing build description
    - NOTE  | [iOS] xcodebuild:  warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')

Updating spec repo `master`

CocoaPods 1.9.1 is available.
To update use: `gem install cocoapods`

For more information, see https://blog.cocoapods.org.cn and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.9.1


--------------------------------------------------------------------------------
 🎉  Congrats

 🚀  GDataXMLNode_iOS (1.1.0) successfully published
 📅  March 10th, 01:31
 🌎  https://cocoapods.org.cn/pods/GDataXMLNode_iOS
 👍  Tell your friends!
--------------------------------------------------------------------------------
$ pod search GDataXMLNode_iOS
[!] Unable to find a pod with name, author, summary, or description matching `GDataXMLNode_iOS`
$ rm ~/Library/Caches/CocoaPods/search_index.json
$ pod search GDataXMLNode_iOS

-> GDataXMLNode_iOS (1.1.0)
Support CocoaPods for GDataXML.
pod 'GDataXMLNode_iOS', '~> 1.1.0'
- Homepage: https://github.com/MichaelLedger/GDataXML
- Source:   https://github.com/MichaelLedger/GDataXML.git
- Versions: 1.1.0 [master repo]