With connection of SSH via Jenkins 2.332.1 to the remote Macs, swift-package module crashes and leaves crash report on Console. Absolutely swift command itself fails.
Filed https://feedbackassistant.apple.com/feedback/14285692 with the crash report created.
Really hard to explain what happens exactly but seems like it is related to Xcode 16 beta (xcrun version 70) because the same problem never occurs on Xcode 15.4 (xcrun version 68).
Xcode
RSS for tagBuild, test, and submit your app using Xcode, Apple's integrated development environment.
Post
Replies
Boosts
Views
Activity
I am a developer working on iOS development using Flutter. I am currently experiencing an issue with building the app and would like to request your support. Previously, the build was working fine, but now there is a problem with it. Below is the log that appears during the build process.
Building --.--.-- for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: -----------
Running Xcode build...
└─Compiling, linking and signing... 3.2s
Xcode build done. 19.5s
Failed to build iOS app
Error (Xcode): Undefined symbols:
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
Encountered error while building for device.
For more detailed logs, I have attached them via Google Drive below.
Thank you!
https://drive.google.com/file/d/1LtnDRWce_AfmkZgSJzdNwE-M0PGSiBUG/view?usp=sharing
When I download and install Xcode-beta 16 I get the following error with the app not opening. Xcode v15.4 opens fine on an Apple M2 Max running Sonoma 14.5.
"Loading a plug-in failed. The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled.".
Anyone know how to resolve? I am trying to experience Timelines in Reality Composer Pro and need 16 beta+ to try it.
Hello All:
I dusted off some old code to bring up to date with the latest and greatest Xcode (16B3) and ran into this weird compile error. Doesn't appear to be actually in my code. The code is in Objective-C (I did say it was old).
In file included from /Volumes/Hard Disk 2/Codewarrior Projects/iCollect For Mac and iPad/iCollect2/Classes/NSImage+Additions.mm:9:
In file included from /Volumes/Hard Disk 2/Codewarrior Projects/iCollect For Mac and iPad/iCollect2/Classes/NSImage+Additions.h:10:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Quartz.framework/Headers/Quartz.h:9:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Quartz.framework/Headers/PDFKit.h:6:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFKit.h:21:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFDocument.h:26:53: error: expected identifier or '{'
26 | typedef NS_ENUM(NSUInteger, PDFSelectionGranularity);
| ^
1 error generated.
Any ideas? I understand that Xcode is in beta now and if this is outside of the forum's scope, no problem. If a radar needs to be opened, I'll do that too if required.
Thanks in advance for your time.
All Best
John
Hello. I'm working on the iOS native side of a react native library (don't worry this question is specifically about the iOS native part). My library relies on the GoogleSignIn library from google. The problem is it uses functionality from a fork that has not been merged by Google yet, and .podspec files do not support specifying a git repo for a module like the actual Podfile does. To circumvent this issue I opted to clone the fork into my libraries source code and treat it as a sort of submodule. I setup the public_header_files/private_header_files/resource_bundle properties in my podspec based on the GoogleSignIn submodules podspec and added the headers to my HEADER_SEARCH_PATHS. I then added the public headers to my bridging header.
So in my podspec I have
s.source_files = "ios/**/*.{h,m,mm,swift}", "GoogleSignIn-iOS/GoogleSignIn/Sources/**/*.{h,m,mm,swift}"
s.public_header_files = "GoogleSignIn-iOS/GoogleSignIn/Sources/Public/GoogleSignIn/*.h"
s.private_header_files = "GoogleSignIn-iOS/GoogleSignIn/Sources/**/*.h"
s.resource_bundle = {
'GoogleSignIn' => ['GoogleSignIn-iOS/GoogleSignIn/Sources/{Resources,Strings}/*']
}
s.pod_target_xcconfig = {
'HEADER_SEARCH_PATHS' => '"$(inherited)" "$(PODS_ROOT)/GoogleSignIn-iOS/GoogleSignIn/Sources/Public/GoogleSignIn" "$(PODS_ROOT)/GoogleSignIn-iOS/GoogleSignIn/Sources"'
}
s.user_target_xcconfig = {
'HEADER_SEARCH_PATHS' => '"$(inherited)" "$(PODS_ROOT)/GoogleSignIn-iOS/GoogleSignIn/Sources/Public/GoogleSignIn" "$(PODS_ROOT)/GoogleSignIn-iOS/GoogleSignIn/Sources"'
}
and in my bridging header
#import "GIDAppCheckError.h"
#import "GIDConfiguration.h"
#import "GIDGoogleUser.h"
#import "GIDProfileData.h"
#import "GIDSignIn.h"
#import "GIDSignInButton.h"
#import "GIDSignInResult.h"
#import "GIDToken.h"
#import "GoogleSignIn.h"
This is working to some extent because I can see the headers in my pod project
Not sure why they're under project but I manually moved them to private/public and it didn't seem to affect anything.
Anyway regardless which category I put the headers in, I cannot actually import GoogleSignIn from outside the "submodule".
Additionally, some files within the "submodule" cannot find each other. For example at GoogleSignIn-iOS/GoogleSignIn/Sources/GIDToken.m I have #import "GoogleSignIn/Sources/Public/GoogleSignIn/GIDToken.h", which just results in 'GoogleSignIn/Sources/Public/GoogleSignIn/GIDToken.h' file not found. If I just do #import "GIDToken.h" its fine but I can't actually rewrite the imports otherwise they'll break again when I update the submodule from git. I have asked on several Discord communites as well as ChatGPT but I cannot find any configuration that makes this submodule work via the podspec.
I am using a Swift PM module and adding it to a brand new project. This project is Objective-C based, but I would like to use the module within a .swift file as I am working to migrate part of my project to Swift. The .swift file is called from the Objective-C app delegate.
When doing this method on a brand new project, it builds correctly.
However, when I add the module to my production app (has been in development for 10 years) in the same way, I get the following error in my MyApp-Swift.h file:
Cannot find interface declaration for 'MBNavigationViewController', superclass of 'CarPlayMapViewController'; did you mean 'UINavigationController'?
I have even created a stripped down version of my app with minimal files and it still does not build.
There must be some build setting or something else that allows the module to work in a brand new project (accessing the MyApp-Swift.h file that generates the Obj-C methods) but not in my older project?
I am building the VisionPro project in Unity.And tried to add GroupActivity to it.
But I found that the VisionOS simulator project generated by Unity didn't have any items under Signing&Capabilities. The Signing configuration item is not displayed also.
Even when I try "+Capability", it says "Capabilities are not supported for Project-Name".
Thanks for any help.
Hi,
When adding a new editor or navigating to another editor using option+click, the new editor would show up on the side, but now it seems to open at the bottom. For me personally, it not the default behavior I ever want. Is there a way to change it back to the way it used to?
I am currently running my Flutter app using macOS 15 beta (I accidentally upgraded and now I can't opt-out) and Xcode 15 beta on my iPhone 11 running iOS 17.5. While the app launches, it gets stuck on a black screen and I encounter the following error in Xcode:
Thread 1: signal SIGABRT
(lldb) bt
• thread #1, stop reason = signal SIGABRT
▪ frame #0: 0x00000001ad9eecd8 dyld__abort_with_payload + 8
frame #1: 0x00000001ad9fa450 dyld_abort_with_payload_wrapper_internal + 104
frame #2: 0x00000001ad9fa484 dyld_abort_with_payload + 16
frame #3: 0x00000001ad987e00 dyld4::halt(char const*, dyld4::StructuredError const*) + 304
frame #4: 0x00000001ad99559c dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 4088
frame #5: 0x00000001ad9b9c48 dyld_start + 1724
Note: This app functions correctly when distributed through TestFlight.
here is my case:
i add the AppIntent to both your app and widget extension targets. the intent will run my app process when app is running.
it works perfectly on iOS 17. but iOS 18, my app process never called.
i download app's demo, https://developer.apple.com/documentation/widgetkit/emoji-rangers-supporting-live-activities-interactivity-and-animations
it looks like the same issue. it runs well because even it runs in the widget extension target, it still can present expected UI. but in real case, we need to run the app process to do some work. by debugging, i found the app process never called(set breakpoint).
i add openAppWhenRun, it works well on iOS 18. but it will open the app when the widget is running. it is not what i want.
I am trying to extract a protocol from an app to be able to use it in a siri intent. Yet when I compile it I get:
note: Injecting stub binary into codeless framework (in target 'Virtual Tags Framework' from project 'Virtual Tags Framework')
/Users/fabriziobartolomucci/Library/Developer/Xcode/DerivedData/Virtual_Tags_Framework-chxutmulwgujeiceazyyzaphwner/Build/Products/Debug-iphonesimulator/Virtual_Tags_Framework.framework/Frameworks/ARKit.framework/Versions/A: bundle format unrecognized, invalid, or unsuitable
Command CodeSign failed with a nonzero exit code
Hello everyone I run into a problem with Xcode I updated my Mac to Mac OS 15 sequoia and I try to get the version 16 of Xcode but It doesn't seem to work is anyone run into the same problem or I'm doing something wrong ? Thank you
Hi,
I have the below code and don't know why the text doesn't show fro swipe buttons just the icons show ?
Kind Regards
import SwiftUI
struct NewView: View {
var body: some View {
NavigationStack {
List {
ForEach(1...7, id: \.self) { number in
VStack {
Text("Item \(number)")
.padding()
}
.swipeActions(edge: .trailing) {
Button(role: .destructive) {
withAnimation {
deletePatient2()
}
} label: {
Label("Delete", systemImage: "trash.fill")
}
Button {
deletePatient2()
// toDoToEdit = item
} label: {
Label("Edit", systemImage: "pencil")
}
.tint(.orange)
}
}
}
}
.listStyle(.plain)
}
func deletePatient2() {
}
}
#Preview {
NewView()
}
Assertion 'child->_nextSibling == NULL' failed. child is already inserted in a tree
Assertion 'child->_parent == NULL' failed. child is already inserted in a tree
These messages began to appear recently in a code that has been 'working' for many years. I guess that I must have done something wrong, but I do not know where to start looking to see why this error is occurring.
I guess it has something to do with SCNode and Scene Kit, but any pointers would be gratefully received.
The two messages may repeat 20-200 times while launching, and occasionally the program hangs.
Hi, I am trying to make a sticker pack app. I create the project, I do nothing extra or anything, leave it bare bones. I go to run the application on the simulator and the sticker pack app doesn't show on the simulator even though it says build succeeded.
I get the following in the console:
mkdir: path=/var/mobile/tmp/com.apple.messages/ mode= -rwx------: [2: No such file or directory]
mkdir: path=/var/mobile/tmp/com.apple.messages/ mode= -rwx------: [2: No such file or directory]
setAllowableTypes_block_invoke:1242: *** CGImageSourceSetAllowableTypes - ignoring unknown: 'public.avci'
Received Connection Invalid
mkdir: path=/var/mobile/tmp/com.apple.messages/ mode= -rwx------: [2: No such file or directory]
Synchronous remote object got an error attempting to post setup, reason: Couldn’t communicate with a helper application.
Could not fetch communication policies: Error Domain=STErrorDomain Code=10 "No local user found in the database" UserInfo={NSLocalizedDescription=No local user found in the database}
[com.apple.MobileSMS:48DE1505-BAA4-4FAB-B829-222B9424E98A] Error when getting current app configuration for action identifier ConversationListFocusFilterAction, error='Error Domain=DNDErrorDomain Code=1007 "No current action is available. Supply the caller with the default." UserInfo={NSLocalizedDescription=No current action is available. Supply the caller with the default.}'
Calling -viewWillAppear: directly on a view controller is not supported, and may result in out-of-order callbacks and other inconsistent behavior. Use the -beginAppearanceTransition:animated: and -endAppearanceTransition APIs on UIViewController to manually drive appearance callbacks instead. Make a symbolic breakpoint at UIViewControllerAlertForAppearanceCallbackMisuse to catch this in the debugger. View controller: <CKSearchViewController: 0x10408fe00>
Invalid absolute dimension, must be > 0.0. NOTE: This will be a hard-assert soon, please update your call site.
Invalid absolute dimension, must be > 0.0. NOTE: This will be a hard-assert soon, please update your call site.
Invalid absolute dimension, must be > 0.0. NOTE: This will be a hard-assert soon, please update your call site.
Invalid absolute dimension, must be > 0.0. NOTE: This will be a hard-assert soon, please update your call site.
Synchronous remote object got an error attempting to post setup, reason: Couldn’t communicate with a helper application.
XPC error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.coreduetd.knowledge was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.coreduetd.knowledge was invalidated: failed at lookup with error 3 - No such process.}
Duet query failed: Couldn’t communicate with a helper application.
Error registering for delegate callbacks. Error: Error Domain=SKStatusSubscriptionErrorDomain Code=-4000 "System iCloud account does not exist or is not statuskit capable" UserInfo={NSDebugDescription=System iCloud account does not exist or is not statuskit capable}
Error retrieving subscription for handle. Error: Error Domain=SKStatusSubscriptionErrorDomain Code=-4000 "System iCloud account does not exist or is not statuskit capable" UserInfo={NSDebugDescription=System iCloud account does not exist or is not statuskit capable} handle: <SKHandle: 0x600000012cc0; handleString = "+18885551212">
Error fetching subscription service for handle: "+18885551212" Error: Error Domain=SKStatusSubscriptionErrorDomain Code=-4000 "System iCloud account does not exist or is not statuskit capable" UserInfo={NSDebugDescription=System iCloud account does not exist or is not statuskit capable}
UIColor created with component values far outside the expected range. Set a breakpoint on UIColorBreakForOutOfRangeColorComponents to debug. This message will only be logged once.
failed to create XPC connection
Unknown invokeXPCSynchronousCallWithBlock error: Error Domain=TransparencyErrorXPC Code=-108 "failed to create XPC connection" UserInfo={NSLocalizedDescription=failed to create XPC connection}
Checked bag access permission -- allowed? YES {hasMachAccess: YES, hasEntitlements: YES}
API MISUSE: Resuming an NSURLSessionTask with nil URL.
Task <56ACC077-605C-49A5-A972-D39D72A8E572>.<1> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x600000c873c0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <56ACC077-605C-49A5-A972-D39D72A8E572>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <56ACC077-605C-49A5-A972-D39D72A8E572>.<1>"
), NSLocalizedDescription=unsupported URL}
I have deleted the project and made a new one, I have set the deployment target to match simulator. I have added a photo in the stickers folder to have a placeholder. The simulator works fine on other projects.
Any Help would be appreciated
Hey,
in Xcode 16's release notes there is this:
Asset catalogs now provide an inspector property for enabling system color and image accessors for generated asset symbols, which allows Swift packages to opt-in to generating these accessors. (113704993)
What exactly does this mean? Can we make the generated asset symbols public, so that we can share assets between local swift packages in the project?
Unfortunately, I don't see this option in the inspector. I only see "Asset Symbols > Extensions On/Off". Not sure what that means, either.
Thanks
We have multiple Jenkins jobs running UI Tests on a Mac with a device attached.
This works most of the time but sometimes the tests don't run and the xcreport generated has an error like:
BCOVBRDCoverageUITests-Runner encountered an error in BCOVBRDCoverageUITests failed with:
Failed to install or launch the test runner. (Underlying Error: Failed to create directory on device 'Brightcove's iPhone 14 Plus' (00008110-000C54912246401E) to hold runtime profiles for application with bundle ID 'com.brightcove.BCOVBRDCoverageUITests.xctrunner': (null). (Underlying Error: The system failed to get the path on the remote device for the provided domain. (Underlying Error: The connection was interrupted.)))
Has anyone else run into this? Any ideas on how to get around it? Kicking off another job after seeing this behavior works fine. The failures seem to be random or we haven't noticed a pattern yet.
I am able to reproduce this also in a minimal example.
Here is my setup:
a Hello World app and a UI test target.
a Test Plan which executes the UI test target
test plan configures application language as German for sanity testing whether changing the test configuration via the test plan in general works -> this works perfectly
test plan configures launch arguments and Environment variables in the shared settings "Arguments passed on launch"
In the ContentView of the app I try to access these values via ProcessInfo:
print(ProcessInfo.processInfo.arguments)
print(ProcessInfo.processInfo.environment)
Now I run the test plan
Expected:
my custom launch arguments appear in arguments
my custom env vars appear in environment
Actual: none of them appear.
What am I doing wrong here?
In the first Xcode 16 beta, none of my SwiftUI previews work - they all just crash on start up.
Has anybody run into this and found a workaround? Have tried all the usual steps of cleaning the project/restarting Xcode.
I don't know why after I connected to firebase in my app my preview just started to crash. here are some screen shots