Cocoapods frameworks.sh error: no such file

So, I'm pretty new to Swift and working with cocoapods, and after spending several days of research, I can’t understand why my project is not being built. I get the following error:

(My project) / Pods / Target support files / Pods - (My project) / Pods- (My project) -frameworks.sh: There is no such file or directory

I am using Xcode 7.2.1 and Cocoapods 0.39.0, and I seem to have tried all the troubleshooting tips from the Cocoapods website. Can someone tell me what I need to do to make it work?

My podkayl:

source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.1' use_frameworks! pod 'GoogleMaps' pod 'FontAwesome.swift' pod 'Lock', '~> 1.21' pod 'JWTDecode', '~> 1.0' pod 'Lock-Facebook', '~> 2.1' pod 'SimpleKeychain', '~> 0.7' pod 'Bolts', '~> 1.6' pod 'FBSDKCoreKit', '~> 4.1' pod 'FBSDKLoginKit', '~> 4.1' pod 'MBProgressHUD', '~> 0.9.2' pod 'Alamofire', '~> 2.0' pod 'CocoaLumberjack/Swift' pod 'AFNetworking', '~> 2.5' pod 'Auth0', '~> 0.2' 
+6
source share
3 answers

You are probably missing the target block for your target in the subfile.

I added the target to my project and forgot to add the target block to the subfile for this purpose, and I had the same error.

(My project) / Pods / Target support files / Pods - (My project) / Pods- (My project) -frameworks.sh: There is no such file or directory

The components of the path are actually named after the target:
(My project) / Subroutines / Target Support Files / Links [target] / Pods- [target] -frameworks.sh

Cocoapods creates configuration files for each goal you specify. Try adding the target entry to your subfile, for example:

 target "SOME TARGET" do specify pods here end 

If you end up adding a lot of goals, it might be a good idea to define groups of groups that you can easily use inside your target entries. This way you define your groups above your target records, for example:

 def commonPods specify pods here end 

Then you can use the group name in your entry in the module, instead of copying all the entries in the cell for each target:

 target "SOME TARGET" do commonPods end 

Adding a target entry to your swap file will cause CocoaPods to create a new set of files the next time you run pod install . However, before you run this command, you may have to configure your configurations to None so that Cocoapods can assign their own configuration. Here's how to do it:

  • Go to your goal at the project level.
  • For each configuration specified in the Configuration section, select None for your purpose in the drop-down menu under Based on Configuration File .

These steps will clear the Cocoapods warning that states:

CocoaPods did not set the basic configuration of your project, because your project already has its own set of settings. For CocoaPods integration to work at all ...

After you have edited your signature file and you have canceled your configurations, you are ready to run pod install on the command line. Upon completion of the process, check the basic configuration settings and note that they were configured on the configuration file that CocoaPods created!

I hope this helps!

+4
source

My problem is that "blablabla Pods-XXXX-frameworks.sh: no such file or directory"

Firstly, I will fix this using the command line "pod install", it has nothing.

Final Solution: Tap “Form Phases” → “Insert Frame Frames”, you will see the path: XXXXX.sh “Make sure XXX.sh matches your project. If not, change the path. Then clear and build. This is done.

+1
source

This is a little silly, but it happened to me:

You may be in the wrong directory.

I ran pod install from the Desktop/Project/Project Files directory and I kept getting this error.

Then I realized that it was one step too far, so I went to the Desktop/Project directory and it worked.

As for why pod install even started considering that the Podfile was in Desktop/Project and not in Desktop/Project/Project Files ... ¯ \ _ (ツ) _ / ¯

+1
source

Source: https://habr.com/ru/post/1243609/


All Articles