小编KFD*_*oom的帖子

Apple Mach-O-Linker错误CocoaPods

我一直试图让我的应用程序运行起来.据我所知,该应用程序错过了Cocoapods作为依赖.所以.我安装并添加了Cocoapods.但无论出于何种原因,我仍然会得到同样的错误.我是一个没有经验的开发人员试图自学我必须添加.

Ld /Users/bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Products/Debug-iphonesimulator/Umbrella.app/Umbrella normal i386 cd"/ Users/bfarag/Desktop/The Nerdery/BRAVO.iOS.CodeChallenge "export IPHONEOS_DEPLOYMENT_TARGET = 7.0 export PATH ="/ Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/ usr/bin:/ bin:/ usr/sbin:/ sbin"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer /Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Products/Debug-iphonesimulator -F/Users/bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Products/Debug-iphonesimulator -filelist/Users/bfarag/Library/Developer/Xcode/DerivedData/Um brella-cspuzusfqmqgnwdqfhtiyivaqwke /建造/中间体/ Umbrella.build /调试-iphonesimulator/Umbrella.build /对象 - 正常/ I386/Umbrella.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lPods-伞AFNetworking -framework CoreGraphics中-framework MobileCoreServices -framework Security -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min = 7.0 -framework加速-framework UIKit -framework Foundation-framework CoreGraphics -lPods -lPods-Umbrella -Xlinker -dependency_info -Xlinker /Users/bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Intermediates/Umbrella.build/Debug-iphonesimulator/Umbrella.build/Objects-normal/i386/Umbrella_dependency_info.dat -o/Users /bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Products/Debug-iphonesimulator/Umbrella.app/Umbrella

ld: library not found for -lPods
clang: error: linker command failed …
Run Code Online (Sandbox Code Playgroud)

xcode mach-o objective-c ios cocoapods

11
推荐指数
3
解决办法
2万
查看次数

简单的递归C++代码不断崩溃

所以我在教自己C++,我很难理解为什么这段代码会崩溃.我已经确定这一行:string str = to_string(n)可能不正确.但我没有看到其他错误导致它崩溃的原因.

#include <iostream>
#include <string>

using namespace std;

void write_vertically(int n)
{
    string str = to_string(n);

    if (str.length()>=0) 
    {
        cout<<stoi(str.substr(0,1))<<endl;
        write_vertically(stoi(str.substr(1,str.length())));
    }

}

int main( ) 
{
    write_vertically(1234567890);
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

c++ recursion iostream

2
推荐指数
1
解决办法
169
查看次数

标签 统计

c++ ×1

cocoapods ×1

ios ×1

iostream ×1

mach-o ×1

objective-c ×1

recursion ×1

xcode ×1