Clearly, the program created by the Xamarin.Forms template is very simple, so this is an excellent opportunity to examine the generated code files and figure out their interrelationships and how they work. Let’s begin with the code that’s responsible…
iOS开发中,在使用一些第三方库时,可能是一个静态库(比如GPUImage).这种情况下,需要编译出静态库文件(.a) ,然后配合响应的头文件(.h 文件)使用. 编译静态库,直接在Xcode中编译即可,有一个细节需要注意. 平常的开发调试中,我们既可以用模拟器调试,也可以用真机调试.实际上,模拟器和真机的处理器是不同的,这也导致了基于真机的静态库文件不适用于模拟器.倘若只是生成了基于真机的静态库文件,当改为模拟器运行时,会提示类似 .a file was built for archiv…