0

I'm programming a Swift iOS app in XCode 9.2 (Dated, I know), and I've tried to integrate GoogleAPIClientForREST using Cocoapods. When you integrate GoogleAPIClientForREST (and possibly other pods, I don't know), it also downloads GTMSessionFetcher. Since the integration of the pods, the app won't run and gives this Shell Script Invocation Error:

/Users/username/Library/Developer/Xcode/DerivedData/Teachers_Assistant-aphjxihtqtmedabcymmxjlmxduzc/Build/Products/Debug-iphonesimulator/Teachers Assistant.app/Frameworks/GTMSessionFetcher.framework: No such file or directory

However, I can't open Teachers Assistant.app, as it's not a folder. GTMSessionFetcher.framework exists, but inside of the folder circled in red in the image at this link, not inside the .app file circled in blue.

I've tried the suggestions at this link, the suggestions in the question at this link, this link, this link, and this link. None of them have worked, though if you think that there was something I did wrong while trying to carry out those steps feel free to tell me.

All of my code is online at this repo, including the podfile. Thanks for the help!

Additional information: I plan on using the Google API to automate Sheets as a sort of storage information system to log attendance data and other miscellaneous information, if that helps at all.

FIGBERT
  • 193
  • 1
  • 9
  • "However, I can't open Teachers Assistant.app, as it's not a folder" It's a package, and it is a folder. – El Tomato Mar 10 '19 at 01:31

1 Answers1

0

Project's name should not contain special characters like ' or space, this could create some problems when Cocoapods try to link the libraries. I suggest you to change your project's name to TeachersAssistance (it worked for me). Here is the suggested steps:

  1. Change project's name in the navigator. Xcode will recommend you to refractor the project, accept it: enter image description here
  2. Update podfile to point to new targets's names
  3. Cocoapods will create a new workspace TeachersAssistance. Use it and delete the old one.
  4. Remove Pods_Teacher__Assistance from new workspace. From now it will use Pods_TeachersAssistant.
  5. Compile again and enjoy your project :)
qtngo
  • 1,594
  • 1
  • 11
  • 13
  • I've followed all of your steps, but I've hit a snag on 3. I changed the `target` line to `target 'TeachersAssistant' do` (I renamed the project to TeachersAssistant), but it didn't create a new workspace. How do I get the pod to create a new workspace? @qtngo – FIGBERT Mar 10 '19 at 03:54
  • @FIGBERT: you must do `pod install` again so Cocoapods create the new workspace for you – qtngo Mar 10 '19 at 03:57