Quick start instructions for Gmail API on Xcode 7 do not work

后端 未结 1 1110
[愿得一人]
[愿得一人] 2021-01-25 16:35

Following up on Gmail API iOS in Xcode 7, Swift 2, I followed the directions, but then ran into the problems listed here: https://groups.google.com/forum/#!topic/google-api-obje

相关标签:
1条回答
  • 2021-01-25 16:56

    OK I figured it out. First you need to overcome the 'glitches' as described https://groups.google.com/forum/#!topic/google-api-objectivec-client/Eq2yW8KdjRU . This includes noting that the projects now have the word 'Core' added to them, fixing the swift file for 2.0 operation, ignoring Steps 3e and f. Also, make sure that each project has iOS selected as architecture. As I thought the i386 build is for the simulator, to explicitly show why that is getting build you can see this here (iOS is implying both iphoneos and iphonesimulator even though i386 does not show in the Valid Architectures list):

    You will then be at the spot that I was above, with linker problems. After fumbling around the net and seeing what was missing, the problem is that several additional files are required for the build:

    I marked the ones that must be added in addition to the ones indicated in the quickstart with red dashes. Also note that some of these must be compiled without ARC, this is shown in the red circle.

    Next, including this in my project.

    0 讨论(0)
提交回复
热议问题