[Solved] Xcode: add "fetch" to the list of your supported UIBackgroundModes in your Info.plist
错误信息 xx[123:345] You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info....
Exception in thread "main" java.util.zip.ZipException: zip END header not found
Exception in thread "main" java.util.zip.ZipException: zip END header not found at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1581) at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java...
从 iOS-Target 到 Appium 的 WebDriverAgent
第一次试了 iOS-Target 没能成功连接。 环境 Xcode: 13.1 MacOS: 12.0.0 iOS: 14.8.0 步骤 安装依赖 git clone https://github.com/appium/WebDriverAgent.git 在 Xcode 中,打开根目录的 WebDriverAgent.xcodeproj 文件 其他步...
String.charCodeAt & String.fromCharCode
String.prototype.charCodeAt() 返回值为 0—65535 之间的整数,Unicode 的 UTF-16 编码。 String.prototype.charCodeAt.call("a"); // 97 String.fromCharCode() 接收参数为 UTF-16 编码,返回值为转换后的字符串。 String.fr...
Apple OCSP
在 Hacker News 上看到在讨论关于 macOS OCSP 存在泄露用户隐私的隐患。 看了相关文章 - https://blog.jacopo.io/en/post/apple-ocsp/ - https://blog.cryptohack.org/macos-ocsp-disaster 主要是因为 OCSP 走的是不加密的 HTT...
使用 Emoji 作为浏览器收藏夹图标
Usage <svg xmlns="http://w3.org/2000/svg" viewBox="0 0 100 100"> <text y=".9em" font-size="80">😎</text> </svg> Compatibility Firefox 是最先支持该图标的浏览器,Chrome 80+ 开始支持。 caniuse#icon-svg Reference...
网络抓包工具
Proxyman 一款 HTTP 调试工具,主要吸引我使用的是 UI,当然工具不能只看外观,功能当然重要。Map Local, Map Remote... 更多功能介绍看 官网 安装 除了去 仓库 下载,还可以通过 Homebrew 下载 $ brew cask install proxyman ...
GitHub Actions 入门及自动化部署实践
介绍 GitHub Actions 是 GitHub 推出的一款持续集成工具。跟它具有同样功能的工具还有 Jenkins, Travis CI, Circle CI。都可以自动化地帮你完成很多重复的工作,如:构建、测试和部署代码等等。 一些术语 workflow 工作流程,可...
React-Native 打包 IPA 文件全流程 (Ad-Hoc)
Environment VMware Workstation 14 Pro: 14.0.0 macOS Mojave: 10.14.0 Xcode: 10 Node: 11 react-native: 0.58.2 注册开发者账号 注册地址 证书签名方式区别 苹果提供三种类型的证书签名方式: 证书名称 安装范围 开发者账号...
React-Native 开发碰到的问题汇总
Environment react-native: 0.58.5 iOS 模拟器无法调用开发菜单 (Mac OS) **解决:**Xcode -> Product -> Scheme -> Edit Scheme -> Run -> Build Configuration 修改为 Debug 执行 react-native info 无法显示 Xcode 版本号 *...
React-Native 编译生成 APK
Environment OS: Windows 10 Gradle: 4.7 Android Studio: 3.2.0.0 JVM: 1.8.0_91 Yarn: 1.15.2 npm: 6.4.1 使用命令行生成签名密钥 进入 bin 目录 $ cd C:/Program Files/Java/jdk1.8.0_211/bin 执行以下命令 $ keytool -genk...
React Native Android 开发环境搭建 (macOS/Windows)
Environment OS: macOS 10.14.5 & Windows 10 Yarn: 1.15.2 安装依赖 - node.js - python2.7 - react-native-cli - jdk8 - android studio macOS # 安装 brew $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent...
Git 不常用的命令
同步 Fork 查看远程仓库 $ git remote -v origin https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (fetch) origin https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (push) 添加新的远程仓库引用到当前...