Xcode 11
Xcode 问题
1. 找不到Assistant Editor模式
1. 在storyboard中使用 ctrl + alt + command + enter
2. 使用`Add Editor on Right`
2. Xcode11 SceneDelegate
iOS 13前 App Delegate 管理 App Lifecycle 和 UI Lifecycle
iOS 13后 App Delegate 管理 App Lifesycle 和 Scene Lifecycle, 而 Scene
Lifecycle 管理 UI Lifecycle.
application didFinishLaunchingWithOptions 无效, 转交给 scene w...
iOS 系统兼容
iOS 系统兼容
9.0
1. Safe Area Layout Guide before ios 9.0
9.0 前使用Top Layout Guide和Bottom Layout Guide进行约束, 11中被弃用
, 9.0 使用Safe Area.
为了兼容8.0, 需要使用Top Layout Guide 和 Bottom Layout Guide
1. storyboard中选择ViewController
2. File inspector中`Builds for` 选择 `iOS 9.0 and Later`
3. 去掉`Use Safe Area Layout Guides`
11.0
1. WKWebView before iOS 11....
FLutter 发布配置
FLutter 发布配置
发布前需要修改应用的基本信息, 应用名, 应用ID, 应用Icon, 应用启动页,
应用版本名, 应用版本编号
其中应用Icon和应用启动页需要单独配置(iOS在Xcode中, android在AndroidManifast中)
应用启动页也可以使用flutter_launcher_icons插件来生成
iOS
1. 应用名称
Xcode 中Display Name 为Runner, 这里不能修改, 会导致Flutter工具使用失常.
直接修改Info.plist中CFBundleName字段
2. 应用ID
Xcode Bundle Identifier字段修改
3. 版本名称和版本号
Xcdoe中可...
iOS Info.plist
iOS Info.plist
1. NSAppTransportSecurity
iOS 9.0开始不赞成使用Http不安全协议
如果确定使用Http, 那么需要配置NSAppTransportSecurity
方式一:
NSAppTransportSecurity
NSAllowsArbitraryLoads
方式二(有选择的允许HTTP):
NSAppTransportSecurity
NSExceptionDomains
域名.com
NSIncludesSubdomains
...
Flutter error
Flutter error
vscode 的flutter 插件大多是使用bash shell, 开发环境最好使用bash, 不能会有未知问题.
导致vscode中flutter命令一直执行, 不会结束, 或者执行错误.
1. Failed to register bundle identifier. The app identifier “com.example.*” cannot be registered to your development team because it is not available. Change your bundle identifier to aunique string to try again. (in target ‘Runne...
Tools Github 加速
Tools Github 加速
1. 配置hosts
× 注:github服务器地址会变动
https://www.ipaddress.com/ip-lookup 查看github.com和
github.global.ssl.fastly.netip地址
修改hosts文件
windows: “C:\Windows\System32\drivers\etc\hosts”
linux/macOS: “/etc/hosts”
140.82.114.3 github.com
199.232.69.194 github.global.ssl.fastly.net
ipconfig /flushdns 刷新d...
Linux 连接蓝牙设备
Linux 连接蓝牙设备
1. 启动蓝牙服务
1. 查看蓝牙服务是否开启
systemctl status bluetooth
2. 开启蓝牙服务
systemctl start bluetooth
3. 开机启动蓝牙服务
systemctl enable bluetooth
2. 连接蓝牙设备(bluetoothctl)
1. bluetoothctl
2. power on
3. agent on
4. scan on // 查询到自己的设备
5. scan off
6. pair 设备uuid
7. 开启设备配对模式
8. connect 设备uuid
Reference
iOS 签名打包
iOS 签名打包
苹果开发者账号
个人(Individual)
99美元一年, 上架App Store, 100个UUID
公司(Company)
99美元一年, 上架App Store, 100个UUID, 可以管理多个开发者
企业(Enterprise)
299美元一年, 企业内部使用(In house), UUID不限, 管理多个开发者
教育(Educational Institutions)
证书说明
ios应用打包需要Certificate 和provision profile文件.
Certificate - 是用来证明你是谁,用该证书签名的应用, 用来证明这个应用是你的
...
463 post articles, 58 pages.