Hi,
Using an Apple silicon mac, I am unable to preview the SwiftUI targeting the framework in a project with EXCLUDED_ARCHS[sdk=iphonesimulator*]
set to arm64
.
The following log seems to indicate that the x86_64 binary was built according to the build settings, but what was actually needed was the arm64 binary.
I would like to know if anyone knows how to solve this problem.
Thanks.
PotentialCrashError: Update failed
XCPreviewAgent may have crashed. Check ~/Library/Logs/DiagnosticReports for any crash logs from your application.
==================================
| RemoteHumanReadableError
|
| LoadingError: failed to load library at path "/Users/me/Library/Developer/Xcode/DerivedData/SwiftUIQuestionSample-bqvuazkgqqnpkbdvedgtbpnnzgnw/Build/Intermediates.noindex/Previews/UIComponents/Products/Debug-iphonesimulator/UIComponents.framework/UIComponents": Optional(dlopen(/Users/me/Library/Developer/Xcode/DerivedData/SwiftUIQuestionSample-bqvuazkgqqnpkbdvedgtbpnnzgnw/Build/Intermediates.noindex/Previews/UIComponents/Products/Debug-iphonesimulator/UIComponents.framework/UIComponents, 0x0000): tried: '/Users/me/Library/Developer/Xcode/DerivedData/SwiftUIQuestionSample-bqvuazkgqqnpkbdvedgtbpnnzgnw/Build/Intermediates.noindex/Previews/UIComponents/Products/Debug-iphonesimulator/UIComponents.framework/UIComponents' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Users/me/Library/Developer/Xcode/DerivedData/SwiftUIQuestionSample-bqvuazkgqqnpkbdvedgtbpnnzgnw/Build/Intermediates.noindex/Previews/UIComponents/Products/Debug-iphonesimulator/UIComponents.framework/UIComponents' (errno=2), '/Users/me/Library/Developer/Xcode/DerivedData/SwiftUIQuestionSample-bqvuazkgqqnpkbdvedgtbpnnzgnw/Build/Intermediates.noindex/Previews/UIComponents/Products/Debug-iphonesimulator/UIComponents.framework/UIComponents' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/UIComponents.framework/UIComponents' (errno=2))
|
| ==================================
|
| | MessageSendFailure: Message send failure for <ServiceMessage 3: update>