-
. xcworkspace工程可以直接用Xcode創(chuàng)建.也可以Xcode創(chuàng)建普通工程singal app 之后pod install.也有創(chuàng)建出. xcworkspace.來(lái)管理pod工程和剛剛創(chuàng)建 的APP工程.
此時(shí)認(rèn)為已經(jīng)創(chuàng)建好testMainProject.xcworkspace工程
image.png -
打開xcworksapce工程,點(diǎn)擊Xcode->File->New->Project依次按照下圖創(chuàng)建testD工程;
image.png
image.png
注意:
這個(gè)地方的選擇,選擇之前的testMainProject.xcworkspace工程

image.png
-
至此testD工程創(chuàng)建成功
image.png
修改testD工程文件
-
刪除testD targets以及文件
image.png -
給testD工程創(chuàng)建frameWork
image.png
image.png -
創(chuàng)建測(cè)試文件TestDCat,并在testD.h文件引入
image.png
image.png
-
至此如果testMainProject工程想引用testC工程,還有在testMainProject里導(dǎo)入testC.framework
image.png -
在想要使用TestDCat模型的文件里引入#import <testD/testD.h> 或者 #import <testD/TestDCat.h>
image.png










