简体   繁体   English

自定义框架可在iPhone 4S / 5和iPad模拟器中运行,而不能在iPhone 5s / 6 / 6Plus / 6s / 6sPlus中运行

[英]Custom Framework working in iPhone 4S/5 and iPad simulator and not in iPhone 5s/6/6Plus/6s/6sPlus

I imported the Haneke framework to the my project, but it doesn't work. 我将Haneke框架导入了我的项目,但是它不起作用。 I got an error "use of unresolved identifier..." related to Haneke framework. 我收到与Haneke框架有关的错误“使用无法解析的标识符...”。 But when I switch the simulator to the 4s/5 or iPad it works fine.. For some reason it was not importing anything from the framework. 但是,当我将模拟器切换到4s / 5或iPad时,它可以正常工作。出于某种原因,它没有从框架中导入任何内容。 I tried with all the simulator devices and found out that it's working for 4S/5/iPad. 我尝试了所有模拟器设备,发现它适用于4S / 5 / iPad。 and not for 5s/6/6+/iPad Retina. 而不适用于5s / 6/6 + / iPad Retina。 I though the problem was in the framework, so I ran the sample code with that framework and it worked perfectly fine on all the simulator devices. 尽管问题出在框架中,但我在该框架上运行了示例代码,并且在所有模拟器设备上都运行良好。 So there is nothing that framework is supporting specific devices. 因此,没有什么框架支持特定设备。 Help me please, because I don't know where is the problem 请帮助我,因为我不知道问题出在哪里

Use the Cocoapod . 使用可可粉

It is designed to work and load on all devices that run iOS 8+ , and is in Swift 2.0 . 它旨在在运行iOS 8+的所有设备上工作并加载,并且在Swift 2.0中

Podfile 播客文件

use_frameworks!
pod 'HanekeSwift'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在iPhone 6模拟器上indexPath.row计算错误,但不是4s / 5 / 5s / 6plus - indexPath.row incorrect calculation on iPhone 6 simulator but not 4s/5/5s/6plus 适用于iPhone 4S,5、5S,6和6 plus的PPI - PPI for iPhone 4S, 5, 5S, 6 and 6 plus 为什么360度视频无法在iPhone 5上使用SKVideoNode,但它在iPhone 4s,5s,6和6 plus上运行良好? - Why 360 degree video is not working with SKVideoNode on iPhone 5 but it is working fine on iPhone 4s, 5s, 6 and 6 plus? 如何为iPhone 5s和6s plus设计? - How to design for iPhone 5s and 6s plus? IBAction按钮在iPhone 4s上有效,但在iPhone 5s上无效 - IBAction button working on iPhone 4s, but not on the iPhone 5s 无法为iphone 4s,5,5s,6,6s的纵向和横向模式设置启动图像 - Not able to set launch image for both portrait and landscape mode for iphone 4s, 5, 5s,6,6s iPhone 6 / 6s和5 / 5s的图像分辨率 - Image resolution for iPhone 6/6s and 5/5s 自动版式无法在iPhone 6s Plus中正常运行 - Autolayouts not working as expected in iPhone 6s Plus iOS框架适用于iPhone 5s,6和6 Plus,但不适用于其他iPhone或iPad模拟器 - iOS framework works for iPhone 5s, 6, and 6 Plus but does not compile for other iPhone or iPad simulators Swift 3:在模拟器iPhone 5s和6s,6s Plus之间切换时,文件中保存的数据会丢失 - Swift 3: Data saved in File gets lost on switching between Simulators iPhone 5s and 6s, 6s Plus
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM