SnapKit / Masonry

Harness the power of AutoLayout NSLayoutConstraints with a simplified, chainable and expressive syntax. Supports iOS and OSX Auto Layout
MIT License
18.05k stars 3.14k forks source link

iOS 11.4 Crash ,Use the orsome CocoaPods. [UIView mas_trailingMargin]: unrecognized selector sent to instance 0x7ff9ba。Source code integration is normal #532

Open yaoyue opened 6 years ago

yaoyue commented 6 years ago

Crash 。Use the orsome CocoaPods. [UIView mas_trailingMargin]: unrecognized selector sent to instance 0x7ff9ba。Source code integration is normal

pszertlek commented 5 years ago

I also encouted this problem. I found that if use Xcode 9, this problem will not happen, but In Xcode 10 this will happen. Perhaps this related to Xcode 10 compile option.

pszertlek commented 5 years ago

I solve this problem. I edit podfile. post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '8.0' end end end will not crash again