iOS中的构建目标文件扩展名是什么? [英] What is build object file extension in iOS?

查看:102
本文介绍了iOS中的构建目标文件扩展名是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在项目中构建Java对象类时,将以.class扩展名创建构建文件,并且人类不可读;快速构建文件呢?

When I build java object class in a project, build file will be created with .class extension and human unreadable; What about swift build files?

示例:

car.java  --> build --> car.class

构建后会是什么?

car.swift --> build --> ?

推荐答案

Swift与Java的编译过程有所不同,因此不一定有直接等效的方法.

The compilation process is a bit different with Swift to Java, so there isn't necessarily a direct equivalent.

随着构建的进行,尽管每个Swift文件都将被编译成一个'Object'文件,并以.o扩展名结尾.然后,一旦它们全部构建,它们就被链接在一起以形成二进制文件.如果取消选择iOS应用程序的IPA文件,则不会看到单个.o文件,就像在Java jar文件中看到.class文件一样.

As the build proceeds though each Swift file will get compiled in to an 'Object' file, ending in a .o extension. Then once they're all built they get linked together to form the binary. If you unpick an iOS app's IPA file, you won't see the individual .o files like how you can see the .class files inside a Java jar file.

这篇关于iOS中的构建目标文件扩展名是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆