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 选择products>example,右边identity and type,type选择Unix-Executable可以看到生成的可执行文件的全路径 ? 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 $ (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |