Build, test, and submit your app using Xcode, Apple's integrated development environment.

Posts under Xcode tag

200 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

empty dSYM file detected - Xcode 16
Hi, I recently updated to Xcode 16. Since then I successfully built my app and sent an update to the App Store. But suddenly, after an exception I've experienced while working on my code, the app is crashing on launch, without showing the stack trace, and showing only one warning in the console: warning: (arm64) /Users/myuser/Library/Developer/Xcode/DerivedData/myapp-bglvscamatwthwbfqmtzmbvxeewc/Build/Products/Debug-iphonesimulator/myapp.app/MyApp empty dSYM file detected, dSYM was created with an executable with no debug info. Tried deleting derived data Erasing all simulator data Reseting my computer No change yet. Any idea what am I missing? Thank you..
26
26
26k
Apr ’25
Xcode 16.0 (16A242d): xcodebuild fails due "INTERNAL ERROR: Uncaught exception"
Hi!, Did you experienced failure of xcodebuild tool in Xcode 16? I can't build from command line. It fails when I am trying to perform clean, build, test, etc. actions. macOS version: 14.7 (23H124) Xcode 16.0, Build version 16A242d My steps: sudo xcode-select -s /Volumes/Apps/Developer/Xcode/Xcode_15_4_0.app xcodebuild -showBuildSettings -workspace mc.xcworkspace -scheme AllNormalTests_macOS As result showBuildSettings is working as expected when using Xcode 15.4. Command line invocation: /Volumes/Apps/Developer/Xcode/Xcode_15_4_0.app/Contents/Developer/usr/bin/xcodebuild -showBuildSettings -workspace mc.xcworkspace -scheme AllNormalTests_macOS User defaults from command line: IDEPackageSupportUseBuiltinSCM = YES Build settings for action build and target Testability_macOS: ACTION = build AD_HOC_CODE_SIGNING_ALLOWED = YES AGGREGATE_TRACKED_DOMAINS = YES ALLOW_TARGET_PLATFORM_SPECIALIZATION = NO ALTERNATE_GROUP = staff ... Then: sudo xcode-select -s /Volumes/Apps/Developer/Xcode/Xcode_16_0_0.app xcodebuild -showBuildSettings -workspace mc.xcworkspace -scheme AllNormalTests_macOS As result error: Command line invocation: /Volumes/Apps/Developer/Xcode/Xcode_16_0_0.app/Contents/Developer/usr/bin/xcodebuild -showBuildSettings -workspace mc.xcworkspace -scheme AllNormalTests_macOS User defaults from command line: IDEPackageSupportUseBuiltinSCM = YES ** INTERNAL ERROR: Uncaught exception ** Uncaught Exception: -[NSTaggedPointerString unsignedIntegerValue]: unrecognized selector sent to instance 0xbe036b67f7528701 Stack: 0 __exceptionPreprocess (in CoreFoundation) 1 objc_exception_throw (in libobjc.A.dylib) 2 -[NSObject(NSObject) __retain_OA] (in CoreFoundation) 3 ___forwarding___ (in CoreFoundation) 4 _CF_forwarding_prep_0 (in CoreFoundation) 5 -[DVTDeviceManager _startObservingDevice:] (in DVTFoundation) 6 -[DVTDeviceManager _adjustAvailableDevicesForChangeKind:addedObjects:removedObjects:] (in DVTFoundation) 7 __42-[_DVTDeviceLocatorTracker startObserving]_block_invoke (in DVTFoundation) 8 -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] (in DVTFoundation) 9 NSKeyValueNotifyObserver (in Foundation) 10 NSKeyValueDidChange (in Foundation) 11 NSKeyValueDidChangeWithPerThreadPendingNotifications (in Foundation) 12 __62-[DVTiPhoneSimulatorLocator _startLocatingDevicesInDeviceSet:]_block_invoke_2 (in IDEiOSSupportCore) 13 __DVT_CALLING_CLIENT_BLOCK__ (in DVTFoundation) 14 ___DVTAsyncPerformBlockOnMainRunLoop_block_invoke (in DVTFoundation) 15 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation) 16 __CFRunLoopDoBlocks (in CoreFoundation) 17 __CFRunLoopRun (in CoreFoundation) 18 CFRunLoopRunSpecific (in CoreFoundation) 19 +[DVTKVOConditionValidator waitForCondition:sourceObject:keyPathAffectingConditionBlock:timeout:] (in DVTFoundation) 20 -[Xcode3CommandLineBuildTool _resolveInputOptionsWithTimingSection:] (in Xcode3Core) 21 -[Xcode3CommandLineBuildTool run] (in Xcode3Core) 22 XcodeBuildMain (in libxcodebuildLoader.dylib) 23 -[XcodebuildPreIDEHandler loadXcode3ProjectSupportAndRunXcode3CommandLineBuildToolWithArguments:] (in xcodebuild) 24 -[XcodebuildPreIDEHandler runWithArguments:] (in xcodebuild) 25 main (in xcodebuild) 26 start (in dyld) Abort trap: 6 Simple commands as shown below are working, but not typical build actions. xcodebuild -h xcodebuild -version xcodebuild -showsdks Thank you in advance!
3
0
1.3k
Oct ’24
**Debug Build Issue: App Crashes on Device Due to Manual Merge in Mergeable Libraries**
If I use the manual merge option with a mergeable library in debug mode, the app crashes on the device only. Here's what I found when debugging this issue. Problem situation 1 In the debug build, the linker does not find the type of the Meregeable Library. Explain the debugged result of Problem Situation 1 We have a type called UserAdDTO, which belongs to the B Framework. - In our project, B Framework and C Framework are mergeable libraries, and they are merged into A Framework. We are using Manual Merge in A Framework. When we build with the simulator, we link the UserAdDTO from CFramework.framework/CFramework in the app target. On the other hand, when I build with the device, I try to link it from AFramework.framework/AFramework, and I get the issue that UserAdDTO is not found. So, even if you output DYLD_PRINT_BINDINGS, the simulator build links to the C Framework to find the UserAdDTO, but the app links to the B Framework, causing a runtime crash. Problem situation 2 It is confirmed that only the device build does not copy the reexported binary. Detailed description of problem situation 2 If you compare the build messages from the device build with the build messages from the release build, both generate the reexported binaries of B and C Frameworks, but do not copy them to BFramework.framework and CFramework.framework. Instead, they copy the files in different paths. This appears to be a bug, and I'd like to ask you to confirm.
0
0
513
Sep ’24
The app will crash on IOS 18 when send a network request
NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; configuration.URLCache = [[NSURLCache alloc] initWithMemoryCapacity:20 * 1024 * 1024 diskCapacity:100 * 1024 * 1024 diskPath:@"myCache"]; if (!configuration) { NSLog(@"Failed to create session configuration."); return; } NSURLSession *session = [NSURLSession sessionWithConfiguration:configuration]; if (!session) { NSLog(@"Failed to create session."); return; } NSURL *url = [NSURL URLWithString:@"https://example.com"]; if (!url) { NSLog(@"Invalid URL."); return; } NSURLRequest *request = [NSURLRequest requestWithURL:url]; if (!request) { NSLog(@"Failed to create request."); return; } NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { if (error) { NSLog(@"Error: %@", error.localizedDescription); } else { NSLog(@"Data received: %@", data); } }]; if (!dataTask) { NSLog(@"Failed to create data task."); return; } dataTask.priority = NSURLSessionTaskPriorityDefault; [dataTask resume]; error message Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSFileManager createDirectoryAtURL:withIntermediateDirectories:attributes:error:]: URL is nil' *** First throw call stack: (0x1848bd08c 0x181bbf2e4 0x183585f48 0x185d2f2bc 0x185d2ec7c 0x10709271c 0x1070a3f04 0x185d2ea88 0x185d2db20 0x185d2d5f4 0x185d2d07c 0x185d274b0 0x185dd82c4 0x185dd8214 0x185dd730c 0x107090a30 0x10709271c 0x10709a5e8 0x10709b394 0x10709cb20 0x1070a85f0 0x1070a7c00 0x20bc27c7c 0x20bc24488) libc++abi: terminating due to uncaught exception of type NSException
4
0
1.6k
Sep ’24
Incorrect Company Name Displayed in TestFlight Invitation
I received two different emails from Apple regarding my developer account: An App Store invitation email stating: "You're invited to join a development team, Acme Corp, in the Apple Developer Program so you can help develop, distribute, and manage their apps." The company name here correctly shows "Acme Corp." A TestFlight invitation email with the subject line: "TechSolutions LLC has invited you to test ShopEasy." In this email, "TechSolutions LLC" appears as the company name, but it should be either "Acme Corp" or simply the app name, "ShopEasy." For context, I have two apps in my account: ShopEasy and TechApp. They are created as separate apps under Acme Corp, which is the entity registered in my Apple Developer account membership. Despite this, when I build ShopEasy for TestFlight, the email subject uses "TechSolutions LLC" as the company name, which is confusing for testers. Could someone help me understand where "TechSolutions LLC" is coming from, and how I can fix this so that the correct app name or entity (Acme Corp) is shown in the TestFlight emails? Thanks for your assistance!
1
0
369
Sep ’24
statusBarFrame error
Using an iPhone 16 Pro Max, running [UIApplication sharedApplication].windows.lastObject.windowScene.statusBarManager.statusBarFrame.size.height in Xcode 15 returns a result of 44, causing UI display issues for applications that rely on the status bar height for calculations. However, using Xcode 16, the same code returns a height of 54, and the UI displays correctly. Is this an Apple Please acknowledge this bug, Apple.
0
2
560
Sep ’24
ASWebAuthenticationSession issue on iOS 18 simulator
We have some third-party SDKs do not support arm64 simulator, so we excluded arm64 for Any iOS Simulator SDK in Excluded Architectures. But in this case, ASWebAuthenticationSession will display abnormally. We submitted FB14853757 during the beta period, but have not received any response. This issue still exists in the official version. I hope it can be resolved. Thank you!
9
8
2.1k
Sep ’24
Incorrect Company Name Displayed in TestFlight Invitation
I received two different emails from Apple regarding my developer account: An App Store invitation email stating: "You're invited to join a development team, Acme Corp, in the Apple Developer Program so you can help develop, distribute, and manage their apps." The company name here correctly shows "Acme Corp." A TestFlight invitation email with the subject line: "TechSolutions LLC has invited you to test ShopEasy." In this email, "TechSolutions LLC" appears as the company name, but it should be either "Acme Corp" or simply the app name, "ShopEasy." For context, I have two apps in my account: ShopEasy and TechApp. They are created as separate apps under Acme Corp, which is the entity registered in my Apple Developer account membership. Despite this, when I build ShopEasy for TestFlight, the email subject uses "TechSolutions LLC" as the company name, which is confusing for testers. Could someone help me understand where "TechSolutions LLC" is coming from, and how I can fix this so that the correct app name or entity (Acme Corp) is shown in the TestFlight emails? Thanks for your assistance!
0
0
259
Sep ’24
Upgraded to Sequoia & Xcode 16.0, now build doesn't work
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/include/c++/v1/__format/formatter_floating_point.h:66:30: error: 'to_chars' is unavailable: introduced in macOS 13.3 66 | to_chars_result __r = std::to_chars(__first, __last, __value, __fmt); Which, ok, I can accept that this is true. Except that this worked on Friday, on the same machine running Sonoma and the previous version of Xcode. The project is configured for a deployment target of 12.0, so it should have failed before, but didn't. (This is a CMake-generated xcodeproj, but that also should not have been any change.)
3
1
910
Sep ’24
What are the model identifiers for the iPhone 16 Pro and iPhone 16 Pro Max?
What are the model identifiers for the iPhone 16 Pro and iPhone 16 Pro Max? static func getiPhoneType() -> String { var systemInfo = utsname() uname(&systemInfo) let machineMirror = Mirror(reflecting: systemInfo.machine) let identifier = machineMirror.children.reduce("") { identifier, element in guard let value = element.value as? Int8, value != 0 else { return identifier } return identifier + String(UnicodeScalar(UInt8(value))) } return identifier } Does anyone have a real device to run the code and provide the information for the iPhone 16 Pro and iPhone 16 Pro Max?
0
1
549
Sep ’24
Xcode 16 not able to load simulator
I am using Xcode from past 3 months and it was working fine but today after update the xcode is very slow and simulator is not loading Here are logs that I am able to get == DATE: Monday, 23 September 2024 at 7:59:17 PM India Standard Time 2024-09-23T14:29:17Z == PREVIEW UPDATE ERROR: AppLaunchTimeoutError: Failed to launch app ”Test16Project.app” in reasonable time The app ”Test16Project.app” did not launch on ”iPhone 16 Pro” in 15 seconds. bundle identifier: text.Testing.Test16Project device name: iPhone 16 Pro path: /Users/newsbytes/Library/Developer/Xcode/DerivedData/Test16Project-aqxeusbqtdgwgrdxunllddzqyzwq/Build/Products/Debug-iphonesimulator/Test16Project.app == PREVIEW UPDATE ERROR: AppLaunchTimeoutError: Failed to launch app ”Test16Project.app” in reasonable time The app ”Test16Project.app” did not launch on ”iPhone 16 Pro” in 15 seconds. bundle identifier: text.Testing.Test16Project device name: iPhone 16 Pro path: /Users/newsbytes/Library/Developer/Xcode/DerivedData/Test16Project-aqxeusbqtdgwgrdxunllddzqyzwq/Build/Products/Debug-iphonesimulator/Test16Project.app == VERSION INFO: Tools: 16A242d OS: 23G93 PID: 1116 Model: iMac Arch: x86_64h == ENVIRONMENT: openFiles = [ /Users/newsbytes/Desktop/Test16Project/Test16Project/ContentView.swift ] wantsNewBuildSystem = true newBuildSystemAvailable = true activeScheme = Test16Project activeRunDestination = Any iOS Device variant iphoneos undefined_arch workspaceArena = [x] buildArena = [x] buildableEntries = [ Test16Project.app ] runMode = JIT Executor == SELECTED RUN DESTINATION: Generic | iOS 18.0 | iphoneos | undefined_arch | GenericiOS | no proxy == EXECUTION MODE OVERRIDES: Workspace JIT mode user setting: true Falling back to Dynamic Replacement: false == PACKAGE RESOLUTION ERRORS: ------------------------------------- Translated Report (Full Report Below) Incident Identifier: C461C69D-1F80-4A0D-B557-8A4425D0C259 CrashReporter Key: 238ECF50-D585-D26B-E449-45E2A49004C2 Hardware Model: iMac19,1 Process: MobileCal [7760] Path: /Volumes/VOLUME/*/MobileCal.app/MobileCal Identifier: com.apple.mobilecal Version: 1.0 (1) Code Type: X86-64 (Native) Role: Non UI Parent Process: launchd_sim [6541] Coalition: com.apple.CoreSimulator.SimDevice.251B8E2E-21BD-4668-A0D8-D3DC5D1FA3BE [1654] Responsible Process: SimulatorTrampoline [1174] Date/Time: 2024-09-23 20:08:53.5192 +0530 Launch Time: 2024-09-23 20:08:13.8949 +0530 OS Version: macOS 14.6.1 (23G93) Release Type: User Report Version: 104 Exception Type: EXC_CRASH (SIGKILL) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: FRONTBOARD 2343432205 <RBSTerminateContext| domain:10 code:0x8BADF00D explanation:process-launch watchdog transgression: app<com.apple.mobilecal((null))>:7760 exhausted real (wall clock) time allowance of 30.00 seconds ProcessVisibility: Background ProcessState: Running WatchdogEvent: process-launch WatchdogVisibility: Background WatchdogCPUStatistics: ( "Elapsed total CPU time (seconds): 54.760 (user 37.980, system 16.780), 28% CPU", "Elapsed application CPU time (seconds): 1.595, 1% CPU" ) reportType:CrashLog maxTerminationResistance:Interactive> Triggered by Thread: 0 Kernel Triage: VM - (arg = 0x0) Fault was interrupted VM - (arg = 0x0) Fault was interrupted Thread 0 Crashed: 0 dyld_sim 0x10a14b6cb dyld3::MachOFile::trieWalk(Diagnostics&, unsigned char const*, unsigned char const*, char const*) + 179 1 dyld_sim 0x10a131e0c dyld4::Loader::hasExportedSymbol(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::ExportedSymbolMode, dyld4::Loader::ResolverMode, dyld4::Loader::ResolvedSymbol*, dyld3::Array<dyld4::Loader const*>) const + 358 2 dyld_sim 0x10a13115b dyld4::Loader::resolveSymbol(Diagnostics&, dyld4::RuntimeState&, int, char const, bool, bool, void (unsigned int, unsigned int, dyld4::Loader::ResolvedSymbol const&) block_pointer, bool) const + 935 3 dyld_sim 0x10a130d69 invocation function for block in dyld4::Loader::forEachBindTarget(Diagnostics&, dyld4::RuntimeState&, void (unsigned int, unsigned int, dyld4::Loader::ResolvedSymbol const&) block_pointer, bool, void (dyld4::Loader::ResolvedSymbol const&, bool&) block_pointer, void (dyld4::Loader::ResolvedSymbol const&, bool&) block_pointer) const + 116 4 dyld_sim 0x10a14e884 invocation function for block in mach_o::Fixups::forEachBindTarget_ChainedFixups(Diagnostics&, void (mach_o::Fixups::BindTargetInfo const&, bool&) block_pointer) const + 61 5 dyld_sim 0x10a14b062 dyld3::MachOFile::forEachChainedFixupTarget(Diagnostics&, dyld_chained_fixups_header const*, linkedit_data_command const*, void (int, char const*, unsigned long long, bool, bool&) block_pointer) + 198 6 dyld_sim 0x10a14e66c mach_o::Fixups::forEachBindTarget_ChainedFixups(Diagnostics&, void (mach_o::Fixups::BindTargetInfo const&, bool&) block_pointer) const + 130 7 dyld_sim 0x10a130cc9 invocation function for block in dyld4::Loader::forEachBindTarget(Diagnostics&, dyld4::RuntimeState&, void (unsigned int, unsigned int, dyld4::Loader::ResolvedSymbol const&) block_pointer, bool, void (dyld4::Loader::ResolvedSymbol const&, bool&) block_pointer, void (dyld4::Loader::ResolvedSymbol const&, bool&) block_pointer) const + 255 8 dyld_sim 0x10a150433 dyld3::MachOAnalyzer::withVMLayout(Diagnostics&, void (mach_o::Layout const&) block_pointer) const + 827 9 dyld_sim 0x10a130bc4 dyld4::Loader::forEachBindTarget(Diagnostics&, dyld4::RuntimeState&, void (unsigned int, unsigned int, dyld4::Loader::ResolvedSymbol const&) block_pointer, bool, void (dyld4::Loader::ResolvedSymbol const&, bool&) block_pointer, void (dyld4::Loader::ResolvedSymbol const&, bool&) block_pointer) const + 92 10 dyld_sim 0x10a136426 dyld4::JustInTimeLoader::applyFixups(Diagnostics&, dyld4::RuntimeState&, dyld4::DyldCacheDataConstLazyScopedWriter&, bool, lsl::Vector<std::__1::pair<dyld4::Loader const*, char const*>>) const + 468 11 dyld_sim 0x10a120d78 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const) + 1617 12 dyld_sim 0x10a1206f4 _dyld_sim_prepare::$_0::operator()() const + 460 13 dyld_sim 0x10a12030e _dyld_sim_prepare + 782 14 dyld 0x119e22e21 dyld4::prepareSim(dyld4::RuntimeState&, char const*) + 1558 15 dyld 0x119e215d1 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 279 16 dyld 0x119e212e4 start + 1812
1
3
1.4k
Sep ’24
Xcode 16 | xcodebuild fails when providing -destination 'platform=iOS Simulator,name=iPhone 16,arch=x86_64'
Hello. In the Xcode 15 we were using this command in the terminal to run our tests on the Rosetta Simulator: xcodebuild -workspace CoreLibraries.xcworkspace -scheme CoreLibraries -destination 'platform=iOS Simulator,name=iPhone 15,arch=x86_64' test` In the Xcode 16 the same command doesn't work anymore. It produces the error: xcodebuild: error: Unable to find a device matching the provided destination specifier: { platform:iOS Simulator, arch:x86_64, OS:latest, name:iPhone 16 } Unsupported device specifier option. The device “iPhone 16” does not support the following options: arch Please supply only supported device specifier options. Running test directly from the Xcode UI using iPhone 16 (Rosetta) still works fine. Does anyone know how to modify the xcodebuild command to make it work again?
15
10
5.8k
Jun ’25
Workaround for Activating Content Filter via CLI with GUI App on macOS
Hi all, I would like to know if it is possible to activate a content filter through the command line interface (CLI). Based on my research, it seems that Apple does not allow this for security design reasons. If it’s indeed not permitted, is there a way to use a GUI-based app as a workaround, where the GUI would only serve the purpose of activating the content filter? After the filter is activated, I’d like to hide the GUI app and run the content filter in the background. Is this approach feasible, and what would be the best way to achieve it? Thanks in advance for your help!
1
0
337
Sep ’24
"Command SwiftCompile failed with a nonzero exit code" error by [Product] - [Archive]
The app in question was recently distributed on September 4,2024. This time, there have been some minor improvements. To test new version on my iPhone, compiling is done completely. But when I archive it for distribution, I get the following error. While running pass #985712 SILFunctionTransform "DeadArgSignatureOpt" on SILFunction "@$s15Petty_treasurer12PhotosViewerC8onReturnyyF". for 'onReturn()' (at /Users/ymdakr/MyAppli/Petty_accountant/Petty_accountant/PhotosViewer.swift:173:11) Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var LLVM_SYMBOLIZER_PATH to point to it): 0 swift-frontend 0x0000000107a5b0fc llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56 1 swift-frontend 0x0000000107a59350 llvm::sys::RunSignalHandlers() + 112 2 swift-frontend 0x0000000107a5b6c8 SignalHandler(int) + 292 3 libsystem_platform.dylib 0x000000018deae584 _sigtramp + 56 4 swift-frontend 0x0000000103cb3c54 swift::AbstractFunctionDecl::isDistributedTargetInvocationResultHandlerOnReturn() const + 356 5 swift-frontend 0x0000000103cb3c54 swift::AbstractFunctionDecl::isDistributedTargetInvocationResultHandlerOnReturn() const + 356 6 swift-frontend 0x000000010305cc74 canSpecializeFunction(swift::SILFunction*, swift::CallerAnalysis::FunctionInfo const*, bool) + 444 7 swift-frontend 0x000000010305c2e4 (anonymous namespace)::FunctionSignatureOpts::run() + 212 8 swift-frontend 0x0000000103247554 swift::SILPassManager::runFunctionPasses(unsigned int, unsigned int) + 3448 9 swift-frontend 0x0000000103240d74 swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) + 252 10 swift-frontend 0x000000010327d084 swift::SimpleRequest (swift::SILPipelineExecutionDescriptor), (swift::RequestFlags)1>::evaluateRequest(swift::ExecuteSILPipelineRequest const&, swift::Evaluator&) + 56 11 swift-frontend 0x00000001032609e8 swift::ExecuteSILPipelineRequest::OutputType swift::Evaluator::getResultUncached(swift::Evaluator&, swift::ExecuteSILPipelineRequest)::'lambda'()>(swift::ExecuteSILPipelineRequest const&, swift::ExecuteSILPipelineRequest::OutputType swift::evaluateOrFatal(swift::Evaluator&, swift::ExecuteSILPipelineRequest)::'lambda'()) + 412 12 swift-frontend 0x00000001032636c4 swift::runSILOptimizationPasses(swift::SILModule&) + 440 13 swift-frontend 0x00000001027db3f8 swift::CompilerInstance::performSILProcessing(swift::SILModule*) + 1160 14 swift-frontend 0x0000000102405d68 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr>, llvm::PointerUnion, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1376 15 swift-frontend 0x00000001024056e4 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 2888 16 swift-frontend 0x0000000102408228 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 1680 17 swift-frontend 0x0000000102406f58 swift::performFrontend(llvm::ArrayRef, char const*, void*, swift::FrontendObserver*) + 3572 18 swift-frontend 0x000000010238e01c swift::mainEntry(int, char const**) + 3680 19 dyld 0x000000018daf3154 start + 2476 Command SwiftCompile failed with a nonzero exit code Previously distributed version is also giving the same error. Development environment: Xcode 16, macOS Sonoma 14.6.1 Run-time configuration: iOS 18
4
0
606
Sep ’24
Cannot Display MTKView on a sheeted view on macOS15
I use xcode16 and swiftUI for programming on a macos15 system. There is a problem. When I render a picture through mtkview, it is normal when displayed on a regular view. However, when the view is displayed through the .sheet method, the image cannot be displayed. There is no error message from xcode. import Foundation import MetalKit import SwiftUI struct CIImageDisplayView: NSViewRepresentable { typealias NSViewType = MTKView var ciImage: CIImage init(ciImage: CIImage) { self.ciImage = ciImage } func makeNSView(context: Context) -&gt; MTKView { let view = MTKView() view.delegate = context.coordinator view.preferredFramesPerSecond = 60 view.enableSetNeedsDisplay = true view.isPaused = true view.framebufferOnly = false if let defaultDevice = MTLCreateSystemDefaultDevice() { view.device = defaultDevice } view.delegate = context.coordinator return view } func updateNSView(_ nsView: MTKView, context: Context) { } func makeCoordinator() -&gt; RawDisplayRender { RawDisplayRender(ciImage: self.ciImage) } class RawDisplayRender: NSObject, MTKViewDelegate { // MARK: Metal resources var device: MTLDevice! var commandQueue: MTLCommandQueue! // MARK: Core Image resources var context: CIContext! var ciImage: CIImage init(ciImage: CIImage) { self.ciImage = ciImage self.device = MTLCreateSystemDefaultDevice() self.commandQueue = self.device.makeCommandQueue() self.context = CIContext(mtlDevice: self.device) } func mtkView(_ view: MTKView, drawableSizeWillChange size: CGSize) {} func draw(in view: MTKView) { guard let currentDrawable = view.currentDrawable, let commandBuffer = commandQueue.makeCommandBuffer() else { return } let dSize = view.drawableSize let drawImage = self.ciImage let destination = CIRenderDestination(width: Int(dSize.width), height: Int(dSize.height), pixelFormat: view.colorPixelFormat, commandBuffer: commandBuffer, mtlTextureProvider: { () -&gt; MTLTexture in return currentDrawable.texture }) _ = try? self.context.startTask(toClear: destination) _ = try? self.context.startTask(toRender: drawImage, from: drawImage.extent, to: destination, at: CGPoint(x: (dSize.width - drawImage.extent.width) / 2, y: 0)) commandBuffer.present(currentDrawable) commandBuffer.commit() } } } struct ShowCIImageView: View { let cii = CIImage.init(contentsOf: Bundle.main.url(forResource: "9-10", withExtension: "jpg")!)! var body: some View { CIImageDisplayView.init(ciImage: cii).frame(width: 500, height: 500).background(.red) } } struct ContentView: View { @State var showImage = false var body: some View { VStack { Image(systemName: "globe") .imageScale(.large) .foregroundStyle(.tint) Text("Hello, world!") ShowCIImageView() Button { showImage = true } label: { Text("showImage") } } .frame(width: 800, height: 800) .padding() .sheet(isPresented: $showImage) { ShowCIImageView() } } }
2
1
632
Oct ’24
Unable to export App via Jenkins pipeline
Hi Team, Exporting the archive through the Jenkins pipeline (executing commands on a Mac EC2 instance as a Jenkins agent) isn't working, while exporting directly from the Mac terminal successfully generates the IPA file. What might be the cause? When we execute it on directly Mac terminal, it asks Keychain password first time & after that it automatically generates IPA file. Note : We are using below working command to open keychain access. security unlock-keychain -p "my_password" /Users/ec2-user/Library/Keychains/login.keychain-db Export command : xcodebuild -exportArchive -archivePath $PWD/build/Archive/MyApp.xcarchive -exportPath $PWD/build/IPA -exportOptionsPlist ../../Dev_exportOptions.plist -allowProvisioningUpdates Current details: Node version : node-v18.17.0-darwin-arm64 Npm version : 9.6.7 Ionic version : 5.2.6 Xcode version : 15.4 Macos : Sonoma 14.6.1
0
0
500
Sep ’24
Asset validation failed
Asset validation failed Invalid Executable. The executable 'xyz.app/Frameworks/OpenSSL.framework/OpenSSL' contains bitcode. (ID: 99418466-a170-4c6b-9b45-9286bb26ffe6) Asset validation failed Invalid Executable. The executable 'xyz.app/Frameworks/HPWebKit.framework/HPWebKit' contains bitcode. (ID: a6f5ae91-558a-4c23-9d09-d139132910e7)
1
4
1.5k
Sep ’24
xcode升级16之后,打包的ipa变大了好多,其他代码没有变化
我们主要是RN项目,最近进行了mac系统升级,xcode随着升级了,现在版本是16.0 然后,打包RN项目,打包出的ipa从19M增大到了172M,看产物,主要是hermes变大了, 目前导出时候thinning设置的是none,设置thin-for-all-variants后体积会减小,但是会产生多个ipa文件,我们应用是企业内部分发,不上市场的,想咨询一下,这种情况怎么解决?
3
1
1.6k
Sep ’24