无法通过“pod install”命令安装库

时间:2016-10-03 21:49:33

标签: ios swift xcode cocoapods

执行命令pod install时,我收到以下错误。

LD_LIBRARY_PATH

这是我的目录结构:

package de.test.auth;

import java.util.Map;
import com.liferay.portal.security.auth.AuthException;
import com.liferay.portal.security.auth.Authenticator;

public class RefuseAuthenticator implements Authenticator {

public int authenticateByEmailAddress(long arg0, String arg1, String arg2, Map<String, String[]> arg3, Map<String, String[]> arg4) throws AuthException {

    System.out.println("failed by mail");
    return FAILURE;
}

public int authenticateByScreenName(long arg0, String arg1, String arg2, Map<String, String[]> arg3, Map<String, String[]> arg4) throws AuthException {

    System.out.println("failed by screen name");
    return FAILURE;
}

public int authenticateByUserId(long arg0, long arg1, String arg2, Map<String, String[]> arg3, Map<String, String[]> arg4) throws AuthException {

    System.out.println("failed by user id");
    return FAILURE;
}

}

Podfile

auth.pipeline.enable.liferay.check=false
auth.pipeline.pre=de.test.auth.RefuseAuthenticator

不确定我在这里缺少什么。请指导。

2 个答案:

答案 0 :(得分:1)

添加为答案,以便您可以将其标记为已接受并关闭问题:

  

此处的目标不是文件,而是xcodeproj中描述的构建目标。打开xcworkspace,选择你的ApplePaySwag.xcodeproj,然后在栏中显示&#34; General&#34;,&#34; Build settings&#34;等,一直到左边,点击蓝色的xcodeproj图标,然后选择重命名似乎命名的目标&#34; &#34;

答案 1 :(得分:0)

您的pod似乎是正确的,但您尝试安装的可可粉盒似乎不正确,最好的办法是仔细检查以确保您输入的是可可豆荚的确切名称。