生成模拟器构建 [英] Generate simulator build

查看:128
本文介绍了生成模拟器构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一款需要Facebook应用数据的应用。
Facebook想要一个发布模拟器构建。我已经按照FB的说明写了这封信但是当我尝试构建模拟器包时 xcodebuild -arch i386 -sdk iphonesimulator7.1
i得到以下错误:

I am working on an app that needs data from a Facebook app. Facebook want a release simulator build. I have followed FB's instruction to the letter but when i try to build the simulator package xcodebuild -arch i386 -sdk iphonesimulator7.1 i get the following error:

    ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

The following build commands failed:
    Ld build/Release-iphonesimulator/Olabord.app/Olabord normal i386
(1 failure)

我怀疑它与可可豆荚有关但我不喜欢我知道如何处理它。
我迫切需要指导或解决方法......!

I suspect that it has to do with cocoa pods but i don't know how to deal with it. I desperately need guidance or a workaround...!

推荐答案

我遇到了同样的问题。由于您正在使用带有pod的工作区文件,因此需要在终端中运行以下命令:

I had the same problem. Since you're working with a workspace file with pods you need to run the following in Terminal:

xcodebuild -workspace {project name}.xcworkspace -scheme {project name}  -arch i386 -sdk iphonesimulator7.1

FB指令说.app文件应该是:
{base directory} / build / release-iphonesimulator / {projectname} .app

The FB instructions say the .app file should be in: {base directory}/build/Release-iphonesimulator/{projectname}.app

在我的情况下,它最终进入
/ Developer / Derived Data / {project name} - {long string of random letters} / Build / Products / Debug-iphonesimulator

In my case it ended up in /Developer/Derived Data/{project name}-{long string of random letters}/Build/Products/Debug-iphonesimulator

这篇关于生成模拟器构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆