With Xcode 16 I cant make the Final Cut Extension Workflow work.
I am quite sure I was able to add the Workflow Extension target a couple of months ago in Xcode 15 and did successfully build it, but in Xcode 16 it wont build and it fails with this error:
clang: error: unknown argument: '-e_ProExtensionMain'
I have installed multiple times Workflow Extensions SDK 1.0.2 and even disabled Library validation like its described in the release notes but I dont think thats the problem here.
Seems like clang doesn't have the arguments for it, I guess the SDK should add these but seems like something got messed up - the template shows up fine in Xcode. I reinstalled Xcode and command line tools but that didnt help. Checking clang it really doesnt have the argument. But where does the SDK add this? Xcode seems to be using internal clang and /usr/bin/clang doesn't have it either.
Any tips what could be the problem here? I was not really able to locate the SDK to remove it before trying to install again - any ideas?
Steps to reproduce
Create new project
Add FCP workflow extension target
Build -> it fails
Same behaviour with 16.1 Beta. I am running Sonoma 14.7.
Thanks in advance for any ideas!
Dive into the vast array of tools, services, and support available to developers.
Post
Replies
Boosts
Views
Activity
What minimal changes can I make to use Xcode 16+ predictive code completion (PCC) when I've been booting from external drives (on the same apple-silicon machine)?
PCC says it requires booting from an internal drive.
I boot from external for a host of reasons that aren't going to change, but need to investigate whether/how I should accommodate PCC.
I haven't found technical communications on PCC requirements, and I hate to guess (wrong) because OS/workflow reconfiguration is hard and disruptive. So this post is to ask whether my approach would work, or if there's a better one.
I hope to continue using the external for the user home directory, the installed Xcode application, and Xcode temporary files (and of course the projects and artifacts).
(a) Does the "internal drive" requirement extend only to booting, or also to installing Xcode or situating the user HOME dir?
(b) Can one use the same external HOME directory for a user booting alternately from an internal and external drives? I would doubt it since the OS's would conflict e.g., in the HOME/Library state.
So I assume that means we use separate HOME dir's, but link key user HOME directories to external/real HOME (git, etc. - also .ssh?). Then OS's have distinct views, but user has mostly common view. (Assuming user always codes/builds for least-common-denominator.)
Aside: is it possible to redirect the system var/temp to an external?
(c) Xcode signing for the same machine/CPU seems locked to a specific OS. I.e., to switch between OS drives but do code signing in Xcode, I've had to re-issue a certificate.
(c-1) Is that avoidable?
(c-2) Can I somehow maintain a per-machine certificate, and toggle between them?
(c-3) Is that process made possible or impossible if Xcode is always pointing at the same Derived-Data/Archives directories? Is there any way to make it semi-automatic, once configured?
Thank you!
(I didn't see any forum tag for PCC.)
On my Mac I have MacOs15 and Xcode 16 installed. I'm working with cocoapods, when adding a new target to my App, pod update it fails. What can I do to solve the problem.
hunter-movil-main % npx cap update ios
✔ Updating iOS plugins in 23.10ms
[info] Found 6 Capacitor plugins for ios:
-capacitor-community/fcm-3.0.2
-capacitor/app-4.1.1
-capacitor/haptics-4.1.0
-capacitor/keyboard-4.1.1
-capacitor/push-notifications-4.1.2
-capacitor/status-bar-4.1.1
✖ Updating iOS native dependencies with pod install - failed!
✖ update ios - failed!
[error] Analyzing dependencies
Searching for inspections failed: undefined method `map' for nil
### Command
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/bin/pod install
### Report
* What did you do?
* What did you expect to happen?
* What happened instead?
### Stack
CocoaPods : 1.15.2
Ruby : ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [arm64-darwin24]
RubyGems : 3.5.18
Host : macOS 15.0 (24A335)
Xcode : 16.0 (16A242d)
Git : git version 2.39.5 (Apple Git-154)
Ruby lib dir : /opt/homebrew/Cellar/ruby/3.3.5/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/
### Plugins
cocoapods-deintegrate : 1.0.5
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.1
cocoapods-trunk : 1.6.0
cocoapods-try : 1.2.0
### Podfile
ruby
require_relative
'../../node_modules/@capacitor/ios/scripts/pods_helpers'
platform :ios, '13.0'
use_frameworks!
# workaround to avoid Xcode caching of Pods that requires
# Product -> Clean Build Folder after new Cordova plugins installed
# Requires CocoaPods 1.6 or newer
install! 'cocoapods', :disable_input_output_paths => true
def capacitor_pods
pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
pod 'CapacitorCommunityFcm', :path =>
'../../node_modules/@capacitor-community/fcm'
pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app'
pod 'CapacitorHaptics', :path => '../../node_modules/@capacitor/haptics'
pod 'CapacitorKeyboard', :path =>
'../../node_modules/@capacitor/keyboard'
pod 'CapacitorPushNotifications', :path =>
'../../node_modules/@capacitor/push-notifications'
pod 'CapacitorStatusBar', :path =>
'../../node_modules/@capacitor/status-bar'
end
target 'App' do
capacitor_pods
# Add your Pods here
pod 'Firebase/Messaging'
end
post_install do |installer|
assertDeploymentTarget(installer)
end
### Error
RuntimeError - `PBXGroup` attempted to initialize an object with unknown
ISA `PBXFileSystemSynchronizedRootGroup` from attributes:
`{"isa"=>"PBXFileSystemSynchronizedRootGroup",
"exceptions"=>["743C7E622CA48F72000F87A0"], "explicitFileTypes"=>{},
"explicitFolders"=>[], "path"=>"pushextension",
"sourceTree"=>"<group>"}`
On my mac I have MacOs15 and Xcode 16 installed. I'm working with cocoapods, when adding a new target to my App pod update it fails. What can I do to solve the problem?
Since upgrading to Xcode 16, I've noticed that when I add new files to my local Swift packages, the "Update Package" option is no longer available when I right-click on my local package.
In previous versions of Xcode, I used this feature to make Xcode recognize newly added files without any issues.
Now, with Xcode 16, the only way I've found to get Xcode to recognize new files is to remove and re-add the entire package, which is obviously not ideal.
I've tried cleaning the build folder and rebuilding the project, but it doesn't seem to help.
Is there a new workflow or method in Xcode 16 to refresh or update local Swift packages without needing to remove and re-add them every time?
Any suggestions or workarounds would be greatly appreciated!
What I’ve tried so far:
Cleaning and rebuilding the project
Looking for any options under "File > Packages" menu
Environment:
Xcode 16
Local Swift Package
Thanks in advance!
Mac OS: 12.3.1 Monterey (Mac Mini 202
Xcode: 13.4.1
'xcodebuild -version' hangs indefinitely for most users, except for one local admin account and one non-admin account (LDAP user). I've searched high and low and found some related issues on this forum and elsewhere, most of which indicate that the Xcode license has not been accepted and provide instructions to accept it from the command line. All of these have been tried countless times, plus Xcode 13.4.1 and CommandLineTools have been reinstalled, and still the issue remains: Only one non-admin user (myself) and the local admin user can run 'xcodebuild' from the command line without hanging. The same is true from Mac Terminal application in a remote console (VNC) session, or putty/xterm connected remotely via ssh.
We can't upgrade Mac OS or Xcode as this is a build/test machine in a server farm and the specific OS and Xcode versions are required minimums for customer support purposes.
Doesn't seem that there is setting unique to each user that could enable/disable Xcode, but the inner workings of Mac OS and Xcode remain largely a mystery.
Please help!
Please help to create a device in my account as all efforts are not working as I am getting error that the device may be attached to another account.
I’m using Xcode 16 on an M1 Pro and experiencing overheating issues. It seems like Apple rushed the release without addressing glitches that cause the laptop to overheat, which can directly affect battery life, decreasing its performance and, in turn, lowering the value of the Mac. I really dislike this from Apple. We pay a lot for their products, and issues like these devalue them.
I created a new Project on Xcode 16 on macOS Sequoia and connected it to a GitHub repository. After making a change on a sub branch, I opened a pull request. On GitHub I can see the changes I made in a diff view. However when I select the PR in Xcode and click on "View Changes" all I get is a endless spinning activity indicator. I could not find anything that would explain this behavior.
Any help very welcome.
Hi everyone, sorry if this post comes off odd, I'm on heavy meds
but I intend to do foss gtk development in c on my Mac using Xcode, I've used brew to download the gtk libraries and I've individually added each path to each library for autocorrect and intelligence in Xcode
But when I build a GTK app in Xcode I get a bunch of 'Unresolved Symbol' messages, here's an example:
Undefined symbol: _g_application_get_type
I also get about 460 warnings from various libraries stating:
/opt/homebrew/Cellar/cairo/1.18.2/include/cairo/cairo.h:2773:5 '@callback' command should be used in a comment attached to a pointer to function declaration
I understand that when you need to compile GTK, you need to pass a command to the compiler (in this case pkg-config --libs --cflags gtk4), where in Xcode's project manager do I add that code? I think I'm supposed to run that command and add the output somewhere line by line to a combobox in Xcode, but where? "other linker flags"?
Has anyone had any luck compiling GTK apps directly from Xcode?
Xcode 16 RC refuses to recognise my iPhone 13 mini running IOS 18 as a device and won’t compile onto it. Using the exact same setup I can compile onto my iPad running IOS 17.5.
Xcode used to compile onto it (Xcode 15.x and iphone on IOS 17.x). My iphone is a known device in my developer account. I have switched on ‘Developer Mode’ in the iPhone Settings and rebooted. I am using an Apple lightning cable. I’ve tried changing USB ports. The Mac recognises it in Finder.
On one app my minimum deployment is IOS 17. I have created a new app where the minimum deployment is IOS 18 and tried both in combinations, below.
I can plug in my iPad running iPadOS 17 and Xcode 16 RC will compile successfully onto it (app is minimum deployment IOS 17) , just not my iPhone now that I upgraded it to IOS 18. I have:
installed the Iphone 13 mini simulator with IOS 18 on Xcode 16 RC and compiled successfully to that with both apps.
rebooted all devices and replugged all devices in countless combinations, countless times.
tried different apps with different minimum deployments, including sample code written by others.
tried setting my minimum deployments to IOS 18
The main issue is that at best, Xcode 16 RC ‘sees’ my iPhone mini and tries to pair with it but doesn’t succeed. I tried following this thread: https://developer.apple.com/forums/thread/764196?answerId=804884022#804884022
and tried ‘Quick fix 1’. Which at least allowed Xcode to sometimes ‘see’ my phone, but after a few reboots, no longer does.
Quick Fix 1:
“Open Terminal and run (replacing the path to Xcode 16.0 if needed):
sudo installer -pkg /Applications/Xcode.app/Contents/Resources/Packages/XcodeSystemResources.pkg -target /“
Apple M1 Pro - Sequoia 15.0 (24A335)
Xcode Version 16.0 (16A242d)
I have submitted feedback:
FB15264854
I've been trying to enroll to Apple Developer Program for my company. They requested the documents below
Applicant’s government-issued photo ID
Applicant’s employment verification
Business documents for B***:
Extract from the Commercial Registry (officially signed and stamped)
Latest version of the company's Articles of Association
Details of the company's tax office and tax number
A recent signatory circular of the company
With a note: If your documents aren’t in a supported language, please include solicitor-certified English translations.
I've uploaded the original documents and the computer generated translations but they didn't except it. Translating these documents costs about 1500 USD and small companies like us can't afford the translation cost. Minimum wage is not even 500 dollar in my country.
I've enrolled the Developer Program before and they only needed the DUNS number, which I already provided. I've asked in social media and someone based in my country enrolled the program about two months ago with only a DUNS number.
Has anyone ever encountered this issue? Is this a new policy? I couldn't find anything about this policy on the web.
In Xcode15, I can set the font of the control on the xib to PingFangSC Regular、Medium、Bold, but after upgrading to Xcode16, I can't set the style, only a PingFangSC simplified, how is this?
Hi,
I'm looking for some advise how to narrow down the location of the crash.
When I run the app with Debug configuration (GCC_OPTIMIZATION_LEVEL=0) everything just works. But in Release configuration with -Os the app crashes. Also need to mention that the crash happens on the device only, but not on the simulator. When the crash happens, there's no stack trace available. The crash happens every time, a couple seconds after I see the first screen. Currently I'm using Xcode Version 16.0 (16A242d), but I have also tried all combinations of:
Xcode 16.1 Beta 1
Xcode 16.1 Beta 2
Device with iOS 18
Device with iOS 17.7
Device with iOS 17.6.1
The result is always the same.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=257, address=0x100000002)
* frame #0: 0x0000000100000002
Is there anything I can do to further narrow down the location of the crash?
Here's a full crash report that I got from the device: https://gist.github.com/plu/e9ed984f438358b5fbf120148cbbaef0
hello sir i am student or i am apple developer i want to sell my app because i have created ios app but i am school student i am not any business or organization i am just a school or i do not have pass duns number i have to enroll For this I have to do my enrollment in educational institution accredited but it is asking for DUNS number or I do not have the pass so I request you to provide me DUNS number so that I can enroll or sell my app please I request you provide me...
When installing the application on my iPhone, connected using USB cable, i am facing the following issue:
ERROR: The application failed to launch. (com.apple.dt.CoreDeviceError error 10002 (0x2712))
NSLocalizedRecoverySuggestion = Provide a valid bundle identifier.
NSLocalizedFailureReason = The requested application VALID_BUNDLE_IDENTIFIER is not installed.
BundleIdentifier = VALID_BUNDLE_IDENTIFIER
----------------------------------------
The operation couldn?t be completed. (OSStatus error -10814.) (NSOSStatusErrorDomain error -10814 (0xFFFFD5C2))
_LSFunction = runEvaluator
_LSLine = 1734
10:02:16 Acquired tunnel connection to device.
10:02:16 Enabling developer disk image services.
10:02:17 Acquired usage assertion.
error MT1045: Failed to execute 'devicectl': 'devicectl -j /var/folders/vq/cdyy2xmd7g9cly1gh_hzvsj00000gn/T/tmp93djQj.tmp device process launch --terminate-existing --device "User’s iPhone" VALID_BUNDLE_IDENTIFIER --monodevelop-port 10000 --connection-mode usb' returned the exit code 1
Xcode version used: 15.4
IDE used to deploy the app: Visual Studio for MAC
Since I updated my Xcode to Xcode 16 my app is constantly shutting down with "App is Crashing with "Message from debugger: Terminated due to signal 6"without any other errors or exceptions.
Any thoughts?
Hi,
I work on a iOS application which includes several local swift packages containing modularised code. Each of those local swift packages has a test target defined in their respective Package.swift, and when opening a local package folder standalone in Xcode, then the tests run without issues.
However I would like in the main app's test plan to add the local package test targets and have them all run together when the main app's default test plan is run. Xcode allows me to select local package test targets within the main app's test plan (also within Test portion of the main app's scheme), however attempting to build for testing throws a "Module '…' was not compiled for testing".
Any ideas on how to achieve this goal (run local package tests in conjunction with main app's tests) and avoid that error?
Thanks
Peter
When AppEnum or AppEntity is introduced into the iOS18 Widget file, xcode compilation will report an error: Error collecting extracted types: The file “SmartPlusWidgetControl.swift” couldn’t be opened because the text encoding of its contents can’t be determined.
We are using a workspace file and have noticed that when we run fastlane commands that utilize xcodebuild command line arguments to run the export localization command from commandline, and it seems that it uses the xcodeproj package.resolved instead of the workspace package.resolved. This is causing issues as the xcodeproj package resolved will not update at all so is on old version of dependencies that cause xcodebuild commands to fail.
Why is there multiple package.resolved files and why does the xcodeproj not stay updated with what is in the workspace resolved file? Why won't the xcodeproj resolved file update when I'm opening the xcodeproj file and selecting specific dependencies and telling it to update the package.