[2020-12-03 12:55:39 CST] <main> DEBUG: Saving configuration to local path: /Users/kris/Library/Caches/com.apple.amp.itmstransporter/Defaults.properties usage: iTMSTransporter [-help <arg> | -info | -m <arg> | -version] [-o <arg>] [-v <arg>] [-WONoPause <arg>] [-Xmx4096m] iTMSTransporter : iTunes Store Transporter 2.1.0 -help <arg> Show this help. If a mode value is specified, show help specific to that mode. -info The -info option should be used by itself and returns the copyright notice and acknowledgements. -m <arg> The -m option specifies the tool's mode. The valid values are: verify, upload, provider, diagnostic, lookupMetadata, createArtist, lookupArtist, status, statusAll, createMetadataTicket, queryTickets, generateSchema, transferTest, downloadMetadataGuides, listReports, requestReport -o <arg> The -o option specifies the directory and filename you want to use to log output information. By default, Transporter logs output information to standard out. If you specify a filename, Transporter logs the output to the specified file, as well as to standard out. -v <arg> The -v option specifies the level of logging. The five values are: off, detailed, informational, critical, eXtreme. -version The -version option should be used by itself and returns the version of the tool. -WONoPause <arg> The -WONoPause option is only valid on Windows and its value can be 'true' or 'false'. If an error occurs during script execution, the process idles because the message 'Press any key...' is displayed on the console and the system awaits a keypress. To avoid this behavior, set this property to true -Xmx4096m Specifies that you want to change the Java Virtual Machine's (JVM) allocated memory by increasing the JVM heap size. By default, Transporter uses a 2048MB heap size. You can use the -Xmx4096m option to specify a 4-gigabyte (GB) heap size. Apple recommends, if needed, increasing the heap size to 4096MB by specifying the -Xmx4096m (or -Xmx4g) option and adjusting as needed. [2020-12-03 12:55:39 CST] <main> DBG-X: Returning 0
A serial dispatch queue runs only one task at a time, waiting until that task is complete before dequeuing and starting a new one. By contrast, a concurrent dispatch queue starts as many tasks as it can without waiting for already started tasks to finish.
–hard:本地的源码和本地未提交的源码都会回退到某个版本,包括commit内容,和git自己对代码的索引都会回退到某个版本,any local changes will be lost。 –soft:保留源码,只能回退到commit信息到某个版本,不涉及到index的回退,如果还需要提交,直接commit即可。比如我选择soft方式来进行回退,我的本地代码和本地新添加的尚未commit的代码都没有改变。 –mixed:会保留源码,只是将git commit和index信息回退到某个版本。
$ git push origin master -f 总共 0 (差异 0),复用 0 (差异 0) remote: GitLab: You are not allowed to force push code to a protected branch on this project. To https://test.com.cn/test.git ! [remote rejected] master -> master (pre-receive hook declined) error: 推送一些引用到 'https://test.com.cn/test.git' 失败
方法2: Initializes a timer object with the specified object and selector.
You must add the new timer to a run loop, using addTimer:forMode:. Then, after ti seconds have elapsed, the timer fires, sending the message aSelector to target. (If the timer is configured to repeat, there is no need to subsequently re-add the timer to the run loop.)
# # Be sure to run `pod lib lint CDUtils.podspec' to ensure this is a # valid spec before submitting. # # Any lines starting with a # are optional, but their use is encouraged # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html #
# This description is used to generate tags and improve search results. # * Think: What does it do? Why did you write it? What is the focus? # * Try to keep it short, snappy and to the point. # * Write the description between the DESC delimiters below. # * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC TODO: Add long description of the pod here. DESC
PoetMacBook-Pro:Example kris$ pod install Analyzing dependencies Downloading dependencies Generating Pods project Integrating client project Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed. PoetMacBook-Pro:Example kris$
$ pod repo add CDSpecs https://github.com/DavidWanderer/CDSpecs.git
cocoapods本地仓库路径为:
1
$ ~/.cocoapods/repos
发布私有库
在自己的私有库目录下执行命令,把当前私有库的索引同步到本地索引库,并同步给远程索引库。
1
$ pod repo push CDUtils CDUtils.podspec
终端截图:
在自己的项目中引用私有库
Podfile如下:
1 2 3 4 5 6 7 8 9 10 11
# Uncomment the next line to define a global platform for your project source'https://github.com/CocoaPods/Specs.git' source'https://github.com/DavidWanderer/CDSpecs.git' platform :ios, '8.0'
target '测试'do # Comment the next line if you don't want to use dynamic frameworks #use_frameworks! pod 'CDUtils', '~> 0.0.1'
# Gitalk # For more information: https://gitalk.github.io, https://github.com/gitalk/gitalk gitalk: enable: true github_id: DavidWanderer(从博客地址中获取:https://davidwanderer.github.io/Blog/,自己的依次类推) id: location.pathname repo: Blog(这里只需要最终的仓库名,不需要全路径,我把评论直接存储在自己的博客仓库里) client_id: ce08****8271(此id从第2步申请结果中获取) client_secret: 1d47***9a608(此secret从第二步申请结果中获取) admin_user: DavidWanderer(此处需要和github_id保持一致) distraction_free_mode: true# Facebook-like distraction free mode # Gitalk's display language depends on user's browser or system environment # If you want everyone visiting your site to see a uniform language, you can set a force language value # Available values: en | es-ES | fr | ru | zh-CN | zh-TW language: zh-CN