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 的正方形,不能有圆角;有圆角启动时会有黑色阴影

相关推荐
刘小哈哈哈17 分钟前
iOS 支持毛玻璃效果修改模糊度
ios
Zender Han17 小时前
Flutter Bloc / Cubit 最新详解与实战指南(2026版)
android·flutter·ios
小路恢弘18 小时前
xcode替换LLVM插件
ide·macos·xcode
tangweiguo0305198721 小时前
iOS vs Android 开发对照手册
android·ios
weixin_443478511 天前
flutter组件学习之Cupertino 组件(iOS风格)
学习·flutter·ios
Andy_GF2 天前
iOS26 系统适配-直接隐藏 UIBarButtonItem 的 Liquid glass 效果
ios
wjm0410062 天前
ios学习路线-- swift基础2
学习·ios·swift
开心就好20252 天前
全面解析WhatsApp Web抓包:原理、工具与安全
后端·ios
程序喵大人2 天前
OpenClaw的成功是AI Agent的“iPhone时刻”吗?
人工智能·ios·iphone·openclaw
marteker2 天前
苹果的冰球营销:用iPad设计面具,讲述科技之外的情感故事
科技·ios·ipad