Xcode 10 not being able to archive project
Finally, I removed "armv7" from "Valid Architectures" of project build settings. It archived! This means iPhone 4S is not compatible anymore.
But, I don't think Apple will deprecate 4S in this way. By diving into the logs, I found that it stucks in creating dSYM symbols.
[17:15:49]: ▸ Generating 'ZUS_INHOUSE_DEV.app.dSYM'
[17:16:15]: ▸
[17:16:15]: ▸ (arm64) could not find object file symbol for symbol _lum_convert
[17:16:15]: ▸ (arm64) could not find object file symbol for symbol _ff_init_desc_hscale
[17:16:15]: ▸ (arm64) could not find object file symbol for symbol _lum_h_scale
[17:16:15]: ▸ (arm64) could not find object file symbol for symbol _ff_init_desc_cfmt_convert
[17:16:15]: ▸
[17:16:15]: ▸ (arm64) could not find object file symbol for symbol _ff_init_desc_chscale
[17:16:15]: ▸ (arm64) could not find object file symbol for symbol _chr_h_scale
[17:16:15]: ▸ (arm64) could not find object file symbol for symbol _ff_init_desc_no_chr
[17:16:15]: ▸ (arm64) could not find object file symbol for symbol _no_chr_scale
[17:16:30]: ▸ (arm64) could not find object file symbol for symbol _vlc_entry__audio_filter_libscaletempo_pitch
[17:16:30]: ▸
[17:16:30]: ▸
[17:16:30]: ▸
[17:16:30]: ▸
[17:16:30]: ▸
[17:16:30]: ▸
[17:16:30]: ▸ (arm64) failed to insert symbol '_best_overlap_offset_float' in the debug map.
Thus, I guess, another workaround is change "Debug Infomation Format" from "DWARF with dSYM File" to "DWARF".
Xcode Product - Archive disabled
You've changed your scheme destination to a simulator instead of Generic iOS Device.
That's why it is greyed out.
Archive button grayed out in Xcode
Answer valid through Xcode 7, 8, 9, 10, 11 and 12+
You can not archive, because from target you have not selected device or Generic iOS device or Any iOS Device , still there is a simulator.
Nothing generic or wrong with Xcode 7. This happens with all Xcode versions.
- Problem - Why archived button is grayed out?
- Solution - Why archived button is not grayed out?
In Xcode 12 it is named Any iOS Device
Project Builds and Runs, but does not Archive
The issue was to do with the iOS Deployment Target
setting:
- The main project: iOS 10
- Sub project: iOS 11
In Debug
it is building only for the current architecture, in Release
it builds for all. Obvious once you know.
Setting the sub project to build for iOS 10 fixed the issue.
The most frustrating part: I double checked the build log and it doesn't mention the version issue anywhere :(
Related Topics
Learn About the Nsxmlparser in iOS
Error: Uitableview Jump to Top with Uitableviewautomaticdimension
Why Is Audio Coming Up Garbled When Using Avassetreader with Audio Queue
iOS Swift 3:Convert "Yyyy-Mm-Dd'T'Hh:Mm:Ssz" Format String to Date Object
Alert When New Version of iOS App Is Available
Uitableviewcellaccessorycheckmark and Autolayout Constraints
How to Change Tint Color of Uialertcontroller
How to Remove All References for Outlet
Thread 1:Exc_Bad_Access (Code = 1, Address = 0X30000008)
iOS 9 Cloudkit: Query Does Not Return Anything While Connected to Cellular Network
Protocol Extension, Mutating Function
iOS - Mkmapview - Draggable Annotations
Send an Email from My App Without Using Mfmailcomposeviewcontroller
How to Run Multiple iOS Simulators at Once