Post not yet marked as solved
For normal testing I build an application using Xcode and selecting "Build for Profiling" from the Product menu.
For production I do
"xcodebuild clean build -configuration Release ......."
I notice a big performance difference.
In my case the XCode profiling build runs in under a minute, the xcodebuild version takes over 4 minutes.
The XCode profiling build uses the Release configuration, the xcodebuild is also using the Release configuration.
What additional configuration options are being set/used when "Building for Profiling"?
I'm having a hard time finding an answer to this question.
Post not yet marked as solved
We have an Aggregate target with a custom Run Script build phase that consumes a JSON file in the project and outputs a .swift file and an .xcassets folder. However, getting our primary app target to see and include these output files has required some hacky measures (that I'd rather not delve into), and I'm wondering if there's something I'm missing.
What's the defacto way of ensuring that Build Phase output files get included as sources file in an app build?
Post not yet marked as solved
Archive -> Distribute App -> Development
Xcode quit unexpectedly.
Problem Details and System Configuration:
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Xcode [572]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 13.1 (19466)
Build Info: IDEFrameworks-19466000000000000~20 (13A1030d)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2021-10-27 14:54:03.3814 +0800
OS Version: macOS 12.0.1 (21A559)
Report Version: 12
Anonymous UUID: 3D16F687-606E-36EA-60C7-91FF7D539D01
Sleep/Wake UUID: 66366CE9-3629-40EB-B045-A2B99351FAD9
Time Awake Since Boot: 4000 seconds
Time Since Wake: 2953 seconds
System Integrity Protection: enabled
Crashed Thread: 11 Dispatch queue: ConcurrentQueue: -[IDEDistributionSummaryStepViewController viewDidLoad]_block_invoke
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -[__NSCFCalendar rangeOfUnit:startDate:interval:forDate:]: date cannot be nil
UserInfo: (null)
Open FDs: 79/7168
Hints:
0: Calling block provided by:
0 DVTDispatchAsync (in DVTFoundation)
1 -[IDEDistributionSummaryStepViewController viewDidLoad] (in IDEKit)
2 -[NSViewController _sendViewDidLoad] (in AppKit)
3 -[NSViewController _loadViewIfRequired] (in AppKit)
4 -[NSViewController view] (in AppKit)
Model: iMac21,1, BootROM 7429.41.5, proc 8:4:4 processors, 16 GB, SMC
Graphics: Apple M1, Apple M1, Built-In
Display: iMac, Retina 4.5K (4480 x 2520), Main, MirrorOff, Online
Memory Module: LPDDR4
AirPort: Wi-Fi, wl0: Sep 13 2021 20:41:31 version 18.20.310.14.7.8.119 FWID 01-bb7889d2
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Network Service: Ethernet, Ethernet, en0
Network Service: iPhone 4, Ethernet, en7
Network Service: iPhone 5, Ethernet, en11
USB Device: USB31Bus
USB Device: iPhone
USB Device: USB31Bus
USB Device: iPhone
USB Device: USB31Bus
USB Device: USB2.0 Hub
USB Device: USB3.0 Hub
Thunderbolt Bus: iMac, Apple Inc.
Thunderbolt Bus: iMac, Apple Inc.
Xcode13.1 Crash Text
Post not yet marked as solved
So basically I faced this error on Xcode 13.1 and tried building the 3.5 to 4.2 version but did not get built.
Module compiled with Swift 5.2.4 cannot be imported by the Swift 5.5.1 compiler: /Users/Documents/Workspace/Project/Carthage/Build/iOS/ObjectMapper.framework/Modules/ObjectMapper.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
Currently same error with
github "Hearst-DD/ObjectMapper" "3.5.3" to github "Hearst-DD/ObjectMapper" "4.2.0"
System: macOSBigSur: 11.6 (20G165)
Could anyone please help me on this?
I tried a couple of StackOverflow answers but does not seem to be working. Tried with NEW BUILD SYSTEM vs LEGACY BUILD SYSTEM.
and some options in build settings.
Post not yet marked as solved
Hi!
I'm searching for the best way to update NSHumanReadableCopyrightString so it automatically sets the current year. The thing is that I've got multiple targets with single copyright string (and all of them use common .xcconfig file).
Is there's a chance to achieve this?
The best solution would be something like this:
COPYRIGHT = Copyright ${DATE:default=2022} © $(COMPANY_NAME).
Post not yet marked as solved
Hi!
When trying to debug my application within Xcode, it built successfully but the app crash at startup with this backtrace:
Thread 1#0 0x000000013569cb48 in strcpy ()
#1 0x00000001356a4515 in dyld4::ProcessConfig::PathOverrides::setString(dyld4::ProcessConfig::Process const&, char const*&, char const*) ()
#2 0x00000001356a3c87 in dyld4::ProcessConfig::PathOverrides::addEnvVar(dyld4::ProcessConfig::Process const&, dyld4::ProcessConfig::Security const&, char const*, bool, char*) ()
#3 0x00000001356a3947 in dyld4::ProcessConfig::PathOverrides::PathOverrides(dyld4::ProcessConfig::Process const&, dyld4::ProcessConfig::Security const&, dyld4::ProcessConfig::Logging const&, dyld4::ProcessConfig::DyldCache const&, dyld4::SyscallDelegate&) ()
#4 0x00000001356a0466 in start ()
Interestingly enough, if I run the produced binary within lldb directly it's working.
I tried with Big Sur and Xcode 13.2, it's working correctly within XCode, this issue seems related to Monterey.
Details my app is a C++ / Objective-C app.
Post not yet marked as solved
I’m trying to make it so if I press a button on Xcode it will run a command line file, but I don’t know how to do it.