Below copied from my original post here: https://forums.swift.org/t/xcode-16-2-beta-seems-increase-the-min-deploy-to-16-0-for-swift-cpp-mixed-project/76221
Our games are set to min deploy of iOS 12.0.
When building with the Xcode 16.2 beta3, the Xcode 16.1 build-able project will have errors for those static libs that has swift mixed with C++:
Compiling for iOS 12.0, but module 'Cxx' has a minimum deployment target of iOS 16.0: /Users/trout.zhang/Documents/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/Cxx.swiftmodule/arm64-apple-ios.swiftmodule
Change that static lib min deploy to 16.0 can make the build succeed, while maintain the exe target still use iOS 12.0.
I am not familiar with how the min deploy works, is it:
choosing the highest of exe and its dependencies, thus effectively set the final product has min deploy of iOS 16.0
or maintaining exe's iOS 12.0 and actually crash in runtime if the iOS is less than 16.0, when reach the code in that static lib.
Apparently, non of the above is what we want.
Use cat in cmdline, for
Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/Cxx.swiftmodule/arm64-apple-ios.swiftdoc
with both Xcode.app(16.1) and Xcode-beta.app(16.2 beta3), I found the different lines:
Xcode 16.1 has:
Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)Cxx?arm64-apple-ios11.0
Xcode 16.2 beta 3 has:
Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.8 clang-1600.0.30.1)Cxx?arm64-apple-ios16.0
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
Hello everyone,
I am using Xcode 16 on macOS 14.6 and have integrated GitHub Copilot for Xcode. However, GitHub Copilot stops functioning when Netskope is enabled on my Mac. I have the necessary SSL certificate in my Mac’s Keychain and have trusted it. When I check, GitHub Copilot successfully connects to the server. However, I can’t find an option to set the certificate in Xcode. Since Netskope is required by my organization, I cannot disable it.
Has anyone encountered this issue or know how to resolve it?
Thank you in advance for your help!
Topic:
Developer Tools & Services
SubTopic:
Xcode
We have a dependency, Apollo iOS, that is managed by SwiftPM in an internal module Swift Package.
That internal Swift Package is then linked and included in our iOS target.
The iOS target has an associated WidgetKit extension app.
When archiving the app, we're seeing extremely long "Copy Apollo_Apollo.bundle" build steps, on the magnitude of 15 minutes. This is only happening when copying the bundle for the Widget extension app.
Builds are done with Xcode 15.2, but we've tried on 15.4 and 16.2, seeing a few minutes shaved off.
How can we begin to debug this issue?
Hi everyone,
I’ve been experiencing a persistent issue with my MacBook Pro (M2 Pro, macOS 15.2) when using Xcode (version 16.2). If Xcode is open and my Mac goes into sleep mode, the screen size changes upon waking. Specifically, I notice 3mm bezels appear on each side of the screen, making the display slightly smaller, and everything scales down to fit this reduced size.
This issue happens multiple times a day and has been ongoing for over a year. It’s quite disruptive to my workflow.
Here is a video to illustrate the problem:
Has anyone encountered this before? If so, do you have any suggestions for fixing it or steps I can take to debug the issue?
Thanks in advance for your help and support!
Topic:
Developer Tools & Services
SubTopic:
Xcode
I find Xcode's Debugging Variable View to be to cluttered, even when just watching "local" variables.
Is there anyway to set it so that it only shows the variables I want to watch? Would make debugging so much easier.
I am trying to name my app "Tata Daewoo Mobility Service" but in app showing without space like 'TataDaewooMobilityService. In korean language not showing the space.
How to add the name in korean language with space in iPhone.
Hi!
Can anyone help me in adding OSC class to plugin? I'm having some troubles in linking OSC class n Info.plist file.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hi everyone,
Since updating to Xcode 16.1 on macOS Sequoia 15.0.1, I’m having issues with my app not launching on my iOS device. The app finishes compiling in Xcode without any errors, but it never appears to launch on the device—it either gets stuck indefinitely or doesn’t show any progress on the device screen.
Details of the Issue:
Xcode shows that the app is launching, but there’s no progress on the device. Tried on multiple devices with the same result.
Troubleshooting Steps I’ve Tried:
Cleaned the build folder and deleted derived data.
Verified the deployment target matches the device’s iOS version.
Checked provisioning profiles and code signing settings.
Restarted both Xcode and my device.
Tried connecting over both USB and Wi-Fi.
Workaround Found:
Unpairing the device from Xcode, pairing it again, then turning off Wi-Fi on the device before building allows the app to launch successfully.
Has anyone else experienced this with Xcode 16.1? Any tips on a more permanent solution or other troubleshooting steps would be greatly appreciated. Thank you!
Topic:
Developer Tools & Services
SubTopic:
Xcode
I'm attempting make to make a distribution build of an app.
In the Xcode target the supported destinations has only iPhone and build active architectures only is set to NO.
I created an archive, then selected Distribute App/ Debugging, but then got this error:
Provisioning profile "iOS Team Provisioning Profile: com.abc.def" doesn't include the currently selected device "DT-iPad-XXXX" (identifier YYYY-YYYYYY).
I've no idea what this device is, it's nothing to do with me, somebody must have added it to the provisioning profile. But that should be beside the point shouldn't it? Because this device has never ever been connected to my Mac/Xcode and so can't be "the currently selected device".
So I tried again. I changed build active architectures to YES and connected an iPhone to the Mac/Xcode and created an archive again. But it was the exact same error.
What's going on, why is Xcode saying this iPad is the currently selected device when attempting to make a distribution?
Hi,
I need to access my private and public key that i have on my iPhone in folder that i named Keys. Directory is located On My IPhone. How can i access this directory? How do I know its path?
Please help.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hello!
I'm trying to flutter run my app but I get this error (Xcode): Command SwiftEmitModule failed with a nonzero exit code
So far I've tried:
rm -rf ios/Pods ios/Podfile.lock
flutter clean && flutter pub get
clean xcode workspace
reinstall xcode
None of the solutions actually work.
Xcode: Version 16.2 (16C5032a)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hello,
I am new to be using on-demand resources in my project, it’s a wonderful idea and concept I have to say! Kudos to whoever invented this!
I am facing one problem that I couldn't solve so far:
whenever I switch between the TestFlight / App Store / local Xcode builds I receive this error message:
Code=4099 "Connection invalidated to streaming unzip service."
Does anyone know what this means and how I can resolve it?
I saw this other thread where it was recommended to delete & reinstall the app, but that is not always feasible because then all user data from the app is lost as well:
https://forums.developer.apple.com/forums/thread/707070
Thanks a lot for any hints!
Hello all!
My application written with C++ for iOS. Want to make some functionality in static library for the purpose of reuse it in different C++ projects. Want to make universal library for using StoreKit2. Global idea is to wrap StoreKit2 Swift out with CPP interoperability.
Now trying to make clear for my self how to create C++ static library with Swift interoperability for iOS in XCode. There are only Objective-C option when you creating static library in XCode for iOS. Is it correct:
Create Static Library with Objective-C in XCode
Remove all default Objective-C files
Add C++ files
Add C++/Swift interoperability in build settings
Add swift classes
Beside all of it some questions:
When C++ static library contain Swift code with interoperability will it require some special settings for project (Swift standard lib or some other settings)? Or it could be used like any other C++ libraries?
What is the optimal build settings in this case to reduce dependencies when using it different projects?
Is there any examples of the same approach for iOS development?
What I want?
I expect to use xcrun devicectl device process launch --device <uuid> <bundle-identifier> --payload-url <URL> to launch my app and pass the specified URL as I usually do in iPhone.
What I do?
Let's say the app A which I'm developing.
I try to use UIApplication.open(:options:completionHandler:) in another app to open the app A with registered schema. And whether app A is cold launch or background resumption, app A can go foreground with receiving URL.
If I use xcrun devicectl as above described, app A can still be opened. However, app A can't receive URL which I pass through --payload-url option. That's different from in iOS.
BTW: I as well try YouTube with UIApplication.open and xcrun devicectl, the former way work, the latter way not work.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Working with .xctestplan files reminds me very much of working with project files and nibs and storyboards back in the day 😅
It seems that they are non-deterministic.
This means that every time we add a new test module or edit the inclusion rules at all the whole file is recomputed. But it doesn't have a fixed order so everything in the file changes.
It makes it very difficult to see what has happened in PR reviews and causes conflicts any time anything is changed.
TBH... because it isn't alphabetical, even just finding a particular test suite is difficult without changes.
Are there any plans to bring this file format up to date with the likes of xcodeproj and xib files?
It would help massively while working with source control in a larger team.
Thanks
Topic:
Developer Tools & Services
SubTopic:
Xcode
From last week all crash for watchOS has been broken.
The latest version 15.22.1 missing all stack trace and showing weird as attached.
All the crashes for previous versions totally disappeared.
Please see this question: https://github.com/appium/appium/discussions/20827?sort=new
Topic:
Developer Tools & Services
SubTopic:
Xcode
I'm having trouble compiling my project for the iOS 18.2 simulator. I'm getting the following error:
`Missing '#include <sys/_types/_time_t.h>'; 'time_t' must be declared before it is used`
The error points to to simulartor-iOS 18.2 > user/include/sys/_types/_time_t.h
#ifndef _TIME_T
#define _TIME_T
#include <machine/types.h> /* __darwin_time_t */
typedef __darwin_time_t time_t;
#endif /* _TIME_T */
This suggests that the time_t type should be defined, but the compiler isn't seeing it. I suspect there might be a problem with preprocessor definitions.
Is there anything I set wrong? I am using OpenSSL.xcframework.
Topic:
Developer Tools & Services
SubTopic:
Xcode
I can't add my iPhone to my Apple Developer team, even though my iPhone is properly connected to my Mac.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Example:
I have a state var curHighScore declared in ContentView.
I select it, right click and select "Find Selected Symbol in Workspace"
The result is : 1 resul in 1 file, i.e. the line of declaration of the var
But obviously, the same var is used at line #102:
How come this occurence is not found by the search command.
Such happens every now and then. Is there something I am missing ? What is causing this ? Thanks for your help.
Topic:
Developer Tools & Services
SubTopic:
Xcode