ios xib 总结
Apple M1 arm64 - IBDesignable error: “incompatible architecture” (have ‘x86_64’, need ‘arm64’)
1 | Failed to render and update auto layout status for ViewController (BYZ-38-t0r): dlopen(ICONButton.app, 0x0001): tried: '/ICONButton' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRootICONButton.app' (no such file), 'ICONButton.app' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')) |
解决办法, 参考: Xcode 12 Apple M1 arm64 - Designable error: “wrong architecture”
This is how I solved it:
- Set the target architecture to arm64
- Set the target exclude architecture x86_64
- Clean build folder (Product -> Clean build folder)
- Restart XCode
Easy XIB and Storyboard Localization
参考: Easy XIB and Storyboard Localization
1 | protocol Localizable { |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 yxibng!
