尝试运行项目时出现“无此模块”错误

时间:2019-09-30 16:33:59

标签: ios swift xcode cocoapods

我有一个开发人员为我创建了一个应用程序,当他们向我发送代码时,当我在xcode中运行它时,每次都会收到“ No such module”错误消息。我已经阅读了这里所有的解决方案,将其清理干净,没有任何解决方法。我什至检查了pod文件夹,一切看起来都不错,下面是pod文件的文本。我了解到您可以更新Pod,但我仍在学习,不知道在何处键入“ update pods””。

DBImageColorPicker是我不断收到模块错误的模块。

目标'WallpaperBoard'做 use_frameworks!

/*
package default;

import java.util.Scanner;
import java.lang.String;

public class Cryptography { //Starting of the class Cryptography 

    /*The initialization  of the variables */

    private int i;

    private int UserChoice;

    private String  UserValue;

    private  char []  Word;

    private char Blank;

    private char IncrementedWord;

    private int EncryptedWord;

    /*The initialization of the variables */


    Scanner GetValue = new Scanner(System.in);

     public void UserPassword() { // Starting of the function UserPassword 

        System.out.println("Enter your password :: ");

        UserValue = GetValue.nextLine();


    } //End of the function UserPassword


    public void EnCryption() {  // Starting of the function Encryption

        Word = new char[ UserValue.toCharArray().length + 100 ];

        Blank = '\0';

        Word = /*Blank + */ UserValue.toCharArray();



        for( i = 0; i < Word.length; i++ ){

            if(Character.isUpperCase(Word.charAt(i))){

                char Charecter = (char)((int)Word)

            }
        }

    }  //End of the function Encryption 

    public void DeCryption() {}



    public void UserChoice() { //Starting of the function UserChoice 

        System.out.println("Enter 1 for EnCryption .. ");
        System.out.println("Enter 2 for DeCryption .. ");

        UserChoice = GetValue.nextInt();

        switch( UserChoice ) { // Starting of the switch case

            case 1: { // Starting of the case 1  

                EnCryption();

                break; 

            } case 2 : { //Starting of the case 2 

                DeCryption();

                break;

            } default : { //Starting of the default 

                System.out.println(" Invalid Choice ");

            } // End of the defalut 


        } // End of the switch case 

    } // End of the function UserChoice


} //End of the class Cryptography

*/

结束

1 个答案:

答案 0 :(得分:3)

去检查一下可可足类documentation

首先请确保您打开的是project.xcworkspace而不是project.xcodeproj

然后:

1)打开终端

2)键入sudo gem install cocoapods并单击ENTER,这将在Macbook上安装cocoapods。

3)导航到项目所在的目录。 (您在其中看到Podfile)

4)输入pod install