Xcode16.2+iOS18以上的系统,加载图片http类型的url时,会自动升级为https,下面是Safari自动打印的日志:This content was automatically upgraded and should be served over HTTPS.有什么解决方案吗?
Xcode
RSS for tagBuild, test, and submit your app using Xcode, Apple's integrated development environment.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
In app purchase is not executed in ios while i run the code in xcode 16.3
But it's working fine in Xcode 16.0.
There is no proper error message or any alerts showing. It just returns an empty product identifier.
Provide the me the solution or kindly fix the issue in xcode IDE regarding this issue in latest xcode
My project is using Fastlane 2.226.0. After converted groups to folders on XCode 16, I got an error when executed below function in Fastfile:
get_version_number(xcodeproj: "MyProject.xcodeproj", target: "MyProject")
Below is the error message output after I ran fastlane:
Unable to find XCode build setting: MARKETING_VERSION
Is SFSymbol Customization officially valid as a method for using SVG in embedded widgets (lock-screen & watchOS)?
I use this in UnitedPizzaHelper but wonder whether this is the prime cause why all widgets of this app gets missing on iOS devices? This issue only happened on at least 2 device in the recent 12 months (they are all on iOS 18, and one of them is running iOS 18.5... Rebooting device won't work.), and we currently have no clue how to troubleshoot this.
Update: The guy running iOS 18.5 told me that the widgets are now discoverable after waiting for minutes. Seems that this is a random issue.
Hi, I currently have an app that connect to an arduno via CoreBluetooth. However, the app no longer discovers the arduino when the operating system was upgraded to iOS 18.3.1, however on iOS version 17.6.1 the ardiuno was discoverable I was able to test this theory on two different phones each with different iOS versions. Why are my peripherals no longer being discovered with this update? and what is the solution?
for instance:
po [NSBundle mainBundle]
0x0000600002130000
p [NSBundle mainBundle]
(NSBundle *) 0x0000600002130000
p [[NSBundle mainBundle] bundlePath]
error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x0).
The process has been returned to the state before expression evaluation.
I am in debug mode
After developing the IOS app using XCode, I https://developer.apple.com/account/resources/identifiers/list Created Identifiers (HanBaoAI) and locally created Certificate SigningRequest.certSigningRequest https://developer.apple.com/account/resources/certificates/list Created Certificates (Expiry Date 2026/04/21) and also created profiles (HanBaoAI, Expires 2026/04/21), and then https://appstoreconnect.apple.com/apps I created an app (HanBaoAI) and uploaded it to the official website using Product Archive in xcode. The upload was successful, but the official website's testflight showed 1 (processing). When I refreshed the page, there was no information in testflight. May I ask what the reason is? How to solve it? Please provide complete and detailed solution steps.
Topic:
Developer Tools & Services
SubTopic:
Xcode
I'm wondering why 'Select Previous Completion' and 'Select Next Completion' aren't working. I'm using Ctrl-K and Ctrl-J but only my arrow keys work to navigation the completion list. 'Show Completion List' works just fine with Ctrl-Esc.
There are no conflicts with any Xcode bindings, and I've checked my system settings for keyboard shortcuts as well..
I've completely disabled copilot, etc..
Is there another setting I'm missing? Or, is this a known issue?
Topic:
Developer Tools & Services
SubTopic:
Xcode
I have one of our developer when he attempts to login to xcode on his macos device, he get a message that account is not found but he has an account and he logs in to app developer portal with no issue. Thanks
Topic:
Developer Tools & Services
SubTopic:
Xcode
When testing Energy Impact on Xcode, it shows zero, and other data is normal
Topic:
Developer Tools & Services
SubTopic:
Xcode
My build succeeded but I immediately got the following pop-up error:
Executable Path is a Directory
Domain: DVTMachOErrorDomain
Code: 5
Recovery Suggestion: /Users/myname/Library/Developer/Xcode/DerivedData/Myapp-dwsmxozkmjfflagroxubgbfvahwq/Build/Products/Debug-iphonesimulator/Myapp.app is not a valid path to an executable file.
User Info: {DVTErrorCreationDateKey = "2025-04-17 11:54:27 +0000"}
Executable Path is a Directory
Domain: DVTMachOErrorDomain
Code: 5
Recovery Suggestion: /Users/myname/Library/Developer/Xcode/DerivedData/Myname-dwsmxozkmjfflagroxubgbfvahwq/Build/Products/Debug-iphonesimulator/Myname.app is not a valid path to an executable file.
System Information
macOS Version 15.5 (Build 24F5053f)
Xcode 16.3 (23785) (Build 16E140)
Applied and Failed Fixes:
Upgrade to MacOS 15.5 Beta
pod deintegrate/podinstall
uninstall and reinstall Xcode
Delete DerivedData folder
Edit info.plist Executable File name
Topic:
Developer Tools & Services
SubTopic:
Xcode
Running macOS 15.4.1, Simulator 16.0 (1042.1), various iOS devices (iPhone 16, iPad 13" M4)
I log into iCloud and enable iCloud Drive. Running the Files app, I noticed that I can click on "flat" documents (PDF, JPEG, etc) and they work. However, when I click on "package" documents (e.g. represented by a directory behind the scenes), I get a normal download progress, but then an alert "The operation could not be completed. No such file or directory".
This seems to happen with all package documents, e.g. Keynote documents or Reality Composer objcap documents. It does not happen on actual devices logged into the same account.
I've tried completely deleting and rebuilding the simulator instances in question, with no success.
Hello!!!
I want to do a little project for the original iPhone running iOS 3.1.3 and I don’t find the SDK for iOS 3.1.3.
I’ve tried downloading Xcode 3.1.3 from the Apple Developer site, but during the installation process, the iPhone SDK doesn’t appear to be included. I also tested Xcode 3.2.2, but it doesn’t seem to have the iPhone OS 3.1.3 SDK either.
Does anyone still have the iPhone OS 3.1.3 SDK available or know where I can find it?
Thanks!!
Edgar
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hi guys, i have an issue with my app, i am able to view in app purchase products from my deployed hybrid app (Ionic 8 with Capacitor 7) IOS platform.
My inapp products are displaying on real device os 18.5 but on simulators there are no products. Is there a bug or something.
Simulators tested 16 Pro max iPad m4, and iPad 5th gen all 18.5
other versions below the products does show and on real device.
Your assistance will be much appreciated.
Topic:
Developer Tools & Services
SubTopic:
Xcode
this is our code foe fetching the apnstoken - and registering for the FCM and snding it to our servers. - we are consistently getting apns == null
import 'dart:io';
import 'package:firebase_messaging/firebase_messaging.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_messaging/firebase_messaging.dart';
import 'package:solaris/services/fetch_deviceId.dart';
Future initializeFCM() async {
final FirebaseMessaging _firebaseMessaging = FirebaseMessaging.instance;
// Request notification permissions for iOS
final settings = await _firebaseMessaging.requestPermission();
print('Notifcation Permission Status: ${settings.authorizationStatus}');
String? apnsToken;
int retries = 0;
const int maxRetries = 60;
const Duration retryDelay = Duration(seconds: 2);
// Retry fetching the APNs token until it's available or max retries are reached
while (apnsToken == null && retries < maxRetries) {
print(retries);
apnsToken = await _firebaseMessaging.getAPNSToken();
if (apnsToken == null) {
await Future.delayed(retryDelay);
retries++;
}
}
if (apnsToken != null) {
// APNs token is available, proceed to get FCM token
String? fcmToken = await _firebaseMessaging.getToken();
if (fcmToken != null) {
// Register the device and token with your backend
await registerDeviceAndToken(fcmToken);
} else {
// Handle the case where FCM token is still null
print('FCM token is null.');
}
} else {
// Handle the case where APNs token is not available after retries
print('APNs token not available after retries.');
}
}
Future registerDeviceAndToken(String fcmToken) async {
//fcmToken = fcmToken;
print(fcmToken);
final user = FirebaseAuth.instance.currentUser;
if (user == null) {
print('❌ User not logged in');
return;
}
final deviceId = await DeviceInfoService.getUniqueDeviceId();
//final fcmToken = await FirebaseMessaging.instance.getToken();
print('📱 Device ID from register_fcm: $deviceId');
print('📩 FCM Token from mew getapnd function: $fcmToken');
if (deviceId == null || fcmToken == null) {
print('❌ Failed to get deviceId or fcmToken');
return;
}
final docRef = FirebaseFirestore.instance
.collection('master_users')
.doc(user.uid)
.collection('deviceId')
.doc(user.uid); // This document holds a map: { deviceId: fcmToken }
print(docRef);
try {
// Get current data, fallback to empty map
final snapshot = await docRef.get();
final data = snapshot.data() ?? <String, dynamic>{};
print(data);
// Update or add current deviceId key
data[deviceId] = fcmToken;
// Save updated map back to Firestore
await docRef.set(data);
print(data);
print('✅ Device ID and FCM token updated/stored under correct structure');
} catch (e) {
print('❌ Firestore write error: $e');
}
}
Hi, I'm currently facing an issue where my React Native app crashes only on a real iPhone. On the simulator and in Xcode preview, the app runs fine.
Previously, I had an issue with FlatList regarding props.getItem, which I solved by installing some missing Babel dependencies. After that, everything worked correctly in the simulator.
But when I try to open the app on a real device, it shows the splash screen and crashes immediately. I've already done a full clean and reset, including:
npx react-native start --reset-cache
Deleted node_modules and Pods, reinstalled everything
Cleaned build folder via Xcode
Deleted DerivedData
Restarted Metro bundler and simulator/device
The issue only happens on the physical device.
Here’s a portion of the crash log
IDate/Time: 2025-04-14 19:11:28.6796 -0300
Launch Time: 2025-04-14 19:11:28.5292 -0300
OS Version: iPhone OS 18.3.2 (22D82)
Release Type: User
Baseband Version: 4.20.03
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: SIGNAL 6 Abort trap: 6
Terminating Process: JazminChebar [1973]
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x19a0865fc __exceptionPreprocess + 164 (NSException.m:249)
1 libobjc.A.dylib 0x197601244 objc_exception_throw + 88 (objc-exception.mm:356)
2 JazminChebar 0x1009b2c04 RCTFatal + 568 (RCTAssert.m:147)
3 JazminChebar 0x1009c81f8 __28-[RCTCxxBridge handleError:]_block_invoke + 532 (RCTCxxBridge.mm:1178)
4 libdispatch.dylib 0x1a1e19248 _dispatch_call_block_and_release + 32 (init.c:1549)
5 libdispatch.dylib 0x1a1e1afa8 _dispatch_client_callout + 20 (object.m:576)
6 libdispatch.dylib 0x1a1e29a34 _dispatch_main_queue_drain + 984 (queue.c:8093)
7 libdispatch.dylib 0x1a1e2964c _dispatch_main_queue_callback_4CF + 44 (queue.c:8253)
8 CoreFoundation 0x19a0d2bcc CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16 (CFRunLoop.c:1793)
9 CoreFoundation 0x19a0cf1c0 __CFRunLoopRun + 1996 (CFRunLoop.c:3163)
10 CoreFoundation 0x19a121284 CFRunLoopRunSpecific + 588 (CFRunLoop.c:3434)
11 GraphicsServices 0x1e73914c0 GSEventRunModal + 164 (GSEvent.c:2196)
12 UIKitCore 0x19cc6a674 -[UIApplication _run] + 816 (UIApplication.m:3846)
13 UIKitCore 0x19c890e88 UIApplicationMain + 340 (UIApplication.m:5503)
14 JazminChebar 0x100178708 main + 80 (main.m:7)
15 dyld 0x1c037dde8 start + 2724 (dyldMain.cpp:1338)
I'm experiencing an issue with a custom font not loading properly in Xcode 16.3. The font files are included in the bundle, listed in Info.plist, and verified for correct names using UIFont.familyNames, but they still don't appear at runtime. Has anyone else run into this with Xcode 16.3? Could this be related to recent changes in asset packaging or font catalogs?
The WatchOS developer is not allowed to obtain healthKit permission status. The result is always unauthorized (either by clicking the dot/cross in the upper left corner or by turning on all Health, on some, off all).
WatchOS 开发获取 healthKit 的权限状态authorizationStatus不准。结果始终都是未授权(无论是点击左上角的点叉号还是开启全部健康项开关,开启部分,关闭所有),怎么处理?
I'm encountering an issue while trying to build my iOS app in Xcode for the simulator.
Issue:
Xcode Version: 15.x
macOS Version: 14.x (Sonoma)
Simulator: iPhone 16 Pro
Error Message: Command ClangStatCache failed with a nonzero exit code
Steps Taken:
Cleaned build folder (Shift + Cmd + K)
Deleted DerivedData (rm -rf ~/Library/Developer/Xcode/DerivedData)
Updated Xcode and checked iOS SDK updates
Disabled Clang Static Analyzer Cache
None of these steps resolved the issue. Any help would be appreciated!
Thanks in advance.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Developer Tools
Xcode Static Analyzer
Simulator
Command Line Tools
I have a warning on my AR app Virtual Tags that since July does not show its camera information telling:
"ARCL.SceneLocationView implements focusItemsInRect: - caching for linear focus movement is limited as long as this view is on screen."
I tried inserting the function, but documentation does not explain what it should return and how to generate it. Is someone able to help me?
Thanks,