Mixed paths and global macro paths
Recently in the work of a place to use a third-party library, but the current swift version has not been found, and do not want to write (in fact, do not write), so think of the mixed, but in the middle there are a lot of problems, the deepest impression is the bridge file path problem, Let me think about Xcode6 before a PCH file path, although not the same, but, I was very silly to make a long time before straightened out, so summed up some.
One: Mixed paths
On the mixed, there is not much to say. Usually we want to implement a function, but in swift there is no good way to find, but just objective-c is very easy to implement (or the third party libraries) we will think of a mixed, generally, we will build a relatively swift OC file for the mixing, This time the Xcode cocktail automatically generated for us to bridge the file and set up the bridge path, but sometimes we do not build the live when we built, this time we need to configure the path, here do not say the specific steps, detailed see SWIFT and OC mixed details, here only give the bridge path pictures, I hope you can read it!
Two: Global macros
Since Xcode6, the PCH file that comes with the system no longer exists, so we need to create it ourselves, and this PCH file needs its own path to use, although we can usually create a common file to achieve the function of global macros, but the individual still like the PCH, So every time a lot of things will think of this, and this PCH file more of the bridge file path is not the same, but perhaps you are so stupid to divide, such as me, about the PCH file of the new here is not much to say, directly on the path picture.
iOS Development--Path & mixed paths and global macro paths