Xcode

info.plist

Appearance

Light 关闭黑暗模式

Bundle display name

设置app名称,默认为工程名

Location When In Use Usage Description

定位权限一共有3个key

1.Privacy - Location When In Use Usage Description

2.Privacy - Location Always and When In Use Usage Description

3.Privacy - Location Always Usage Description
推荐使用1,好上架,以下教程使用Location When In Use Usage Description

swift 复制代码
import CoreLocation

// 定位
let locationManager = CLLocationManager()
locationManager.requestWhenInUseAuthorization()

//定位权限判断
switch CLLocationManager.authorizationStatus() {
case .denied :
    //未授权
case .notDetermined :
    //不确定
case .authorizedAlways :
    //一直允许
case .authorizedWhenInUse :
    //使用期间允许
case .restricted :
    //受限的
}

// 跳转到app权限设置页面
func openSettings() {
    guard let settingsURL = URL(string: UIApplication.openSettingsURLString) else {
        return
    }
 
    if UIApplication.shared.canOpenURL(settingsURL) {
        UIApplication.shared.open(settingsURL, options: [:], completionHandler: nil)
    }
}

长按显示的复制、剪切的提示从英文改为中文



Archive报错

Invalid large app icon. The large app icon in the asset catalog in "App-lOS.app" can't be transparent or contain an alpha channel.

打开app图标-> 文件 -> 导出-> 取消勾选Alpha通道

注:App图标为1024 * 1024 的正方形,不能有圆角;有圆角启动时会有黑色阴影

相关推荐
徐同保10 小时前
通过ip访问nginx的服务时,被第一个server重定向了,通过设置default_server解决这个问题
ios·iphone
2501_9159184114 小时前
在 iOS 环境下查看 App 详细信息与文件目录
android·ios·小程序·https·uni-app·iphone·webview
2501_9160074716 小时前
没有 Mac 用户如何上架 App Store,IPA生成、证书与描述文件管理、跨平台上传
android·macos·ios·小程序·uni-app·iphone·webview
夏幻灵1 天前
HTTPS全面解析:原理、加密机制与证书体
ios·iphone
TheNextByte11 天前
如何在iPhone上恢复已删除的笔记的综合指南
笔记·ios·iphone
rose and war1 天前
python和jinja版本问题导致的访问报500
python·ios
fendoudexiaoniao_ios1 天前
iOS 列表拖拽cell排序
ios·swift
风栖柳白杨1 天前
【语音识别】Qwen3-ASR原理及部署
人工智能·python·语音识别·xcode·audiolm
2501_915106321 天前
当 Perfdog 开始收费之后,我重新整理了一替代方案
android·ios·小程序·https·uni-app·iphone·webview
2501_915918412 天前
中小团队发布,跨平台 iOS 上架,证书、描述文件创建管理,测试分发一体化方案
android·ios·小程序·https·uni-app·iphone·webview