加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

swift笔记三 使用xcode

发布时间:2020-12-14 01:45:45 所属栏目:百科 来源:网络整理
导读:建一个xcode工程。。OS X Application Command Line Tool因为我们只是想玩玩swift语言特性不做UI. product name; example org name: cyper org id: me.cyper bundle id: me.cyper.example 保存在桌面. example example.xcodeproj example example/main.swift

建一个xcode工程。。OS X > Application > Command Line Tool因为我们只是想玩玩swift语言特性不做UI.

product name; example
org name: cyper
org id: me.cyper
bundle id: me.cyper.example

保存在桌面.
example > example.xcodeproj
example > example/main.swift

选择products>example,右边identity and type,type选择Unix-Executable可以看到生成的可执行文件的全路径
/Users/cyper/Library/Developer/Xcode/DerivedData/example-ajcwintjwwixdreqjjijwrzqriom/Build/Products/Debug/example

这个hello world文件大约5M

?  Debug  $ pwd
/Users/cyper/Library/Developer/Xcode/DerivedData/example-ajcwintjwwixdreqjjijwrzqriom/Build/Products/Debug
?  Debug  $ ll
total 10904
-rwxr-xr-x  1 cyper  staff   5.3M Oct 10 20:03 example
drwxr-xr-x  4 cyper  staff   136B Oct 10 20:00 example.swiftmodule/
?  Debug  $ ./example
Hello,World!
?  Debug  $

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读