Images Disappearing after setting “Valid Architecture” to “arm64”

二次信任 提交于 2020-01-17 03:55:09

问题


I am updating an existing app from another developer to support 64 bit devices as Apple is going to make it compulsory.

I added :- Architectures : $(ARCHS_STANDARD) valid Arch : armv7 arm64

Problem :- The slot items after stopping the rotation disappear. this happens only on i5,i6 n i6+ devices only. (Working perfect on i4s n iPad(s))

Failed Attempts: 1) Converted all float values to CGFloat for if the float might be loosing values. 2) tried to use xib of i4 in place of i5s

P.S: This question might be a duplicate of "Images not showing up when architecture set to 64 bit"

But, the above solution is so much code specific to the guy's personal problem. So I am asking for a more generic solution.


回答1:


Update the Data structure used in code according to 64 bits for example replace int type with NSInteger, Float with CGFloat, etc.

I also faced similar issue, hence solved this issue by updating data type used for 64 bits as range differs w.r.t to 32 bits.

Find solution in below link, by update the iCarousel third party library.

link: https://github.com/nicklockwood/iCarousel




回答2:


ipad4 is armv7, iphone6 need armv7s so you might need to add armv7s



来源:https://stackoverflow.com/questions/26925620/images-disappearing-after-setting-valid-architecture-to-arm64

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!