DONE jazzy工具使用实现基本的文档的生成,并同步到hugo目录中

支持oc/swift文档

  1. swift文档

  2. oc 文档

  3. .jazzy.yaml配置文件使用

    1
    2
    3
    4
    5
    6
    7
    8
    
    author: Alamofire Software Foundation
    author_url: http://alamofire.org/
    github_url: https://github.com/Alamofire/Alamofire
    root_url: https://alamofire.github.io/Alamofire/
    module: Alamofire
    output: docs
    theme: fullwidth
    xcodebuild_arguments: [-workspace, 'Alamofire.xcworkspace', -scheme, 'Alamofire iOS']

    使用test.sh

    1
    2
    3
    4
    5
    
    #!/bin/bash
    jazzy --config .custom.jazzy.yaml
    jazzy --config .admin.jazzy.yaml
    jazzy --config .swiftfire.jazzy.yaml
    echo "Jazzy completed"

DONE 在Xcode 11 bata5之后,无法显示类结构问题

参看:https://github.com/realm/jazzy/issues/1095#issue-488350044

DONE cocoapods私库的使用,在iSmallAPP中使用私库

  1. 在ismallAPP的bundle中发布一个私库

  2. 总结发布流程,运用到工作中,并发布jazzy文档

  3. 使用fastlane发布cocopods私库

    1
    
    - ERROR | [iOS] unknown: Encountered an unknown error (Could not find a `ios` simulator (valid values: ). Ensure that Xcode -> Window -> Devices has at least one `ios` simulator listed or otherwise add one.) during validation.

    解决办法: 升级CocoaPods(使用的gem 源: https://gems.ruby-china.com/

1
2
3
4
  sudo gem install cocoapods
  fastlane podPushLane version:1.3 project:LogSwift
pod lib lint LogSwift.podspec --allow-warnings

错误2

1
- NOTE  | xcodebuild:  error: SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'LogSwift' from project 'Pods')

原因: Usage of the .swift\_version file has been deprecated! Please delete the file and use the swift\_versions attribute within your podspec instead. 解决: 删除目录下.swift_version

错误3:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
Validating spec
-> LogSwift (1.6)
- ERROR | [iOS] unknown: Encountered an unknown error (Unable to find a specification for `RNCryptor (~> 5.1.0)` depended upon by `LogSwift`

                                                       You have either:
                                                       * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
                                                       * mistyped the name or version.
                                                       * not added the source repo that hosts the Podspec to your Podfile.

                                                       Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
                                                      ) during validation.

[!] The `LogSwift.podspec` specification does not validate.

解决方法: pod repo update 更新pod索引库重新发布: pod repo push PodRepo ‘LogSwift.podspec’ –allow-warnings

问题4

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
[!] The repo `PodRepo` at `../../../../.cocoapods/repos/PodRepo` is not clean

原因:
git status

.DS_Store
ArcProgressUI/.DS_Store
LogSwift/.DS_Store
MusicLrc/.DS_Store

$ git clean [参数] //-n 显示将要删除的文件和目录 -f 删除文件 -df 删除文件和目录
  1. 使用fastlane生成jazzy私库

DONE fastlane工具使用,编译Xcode工程,并发布到蒲公英

使用fastlane编译APP生成ipa(暂不支持personal teams)
>Xcode已经支持个人账号(不是开发者账号)运行在真机,在这种情况下,如何使用
fastlane编译app并运行到真机上?

fastlane doesn’t support personal Apple IDs for now 上传ipa到蒲公英

类似jenkins的工具学习集成的基本操作流程

[2019-08-30 Fri 09:55]