I'm using Xcode Version 7.2 (7C68).
I met a problem after I build DTCoreText project as framework. DTCoreText.framework works fine on ios simulator, but when i want to test it on device, the following problem showed up:
I've checked the build settings in the latest DTCoreText-1.6.17 project:
Target: DTCoreText (iOS)
ARCHS: armv7, arm64
ONLY_ACTIVE_ARCH: NO
VALID_ARCHS: arm64, armv7, armv7s
I think these settings are OK. Than I "Build for Profiling" by pressing Shift+CMD+i.
- Build using simulator:
I noticed the current device i just used for building is Simulator (iPhone 6 Plus). And I find the DTCoreText.framework under the Release-iphonesimulator folder. by doing this, the DTCoreText.framework only works fine when using iphone simulator, but not on real device.
- Build using device:
Than I tried to rebuild DTCoreText.framework with the same build settings, but using "Generic iOS Device" or "Real Device (eg: iPhone 6s)". I got the DTCoreText.framework under Release-iphoneos folder. By doing this, the DTCoreText.framework only works fine when using real device, but not on iphone simulator.
I don't know why it is happening. How to build DTCoreText.framework for both simulator and real device?