如何为 Facebook 提交构建应用程序

How to build app for Facebook submission

我有应用程序需要提交到 Facebook 进行审核。 此处给出了为 Facebook 创建应用程序的步骤: https://developers.facebook.com/docs/ios/creating-ios-simulator-build-for-review

但我有如下所示的模拟器:

Facebook link 中显示的用于构建应用程序的命令适用于 iOS 7.1 的模拟器现在我使用什么命令来构建我的应用程序? 我正在使用 Xcode 6.1.1 。我应该为哪些 sdks 构建我的应用程序以在 Facebook 上提交? 请在模拟器中提供构建和 运行 该应用程序的命令以进行测试。

你的编码没问题继续进一步的工作

//run this command 

 xcodebuild -arch i386 -sdk iphonesimulator8.1

你得到以下结果

This should generate a build. If the build was successful you should see a lot of output from the build tools followed by the string ** BUILD SUCCEEDED ** in your terminal.

试试这个来解决 failure

选择否 - 1

xcodebuild -arch i386 -sdk iphonesimulator{version} -workspace [projectName].xcworkspace -scheme [projectName]

需要帮助使用这个link

选择否 - 2

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

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

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

运行 您在模拟器上的应用程序并转到位置 ~/Library/Developer/Xcode/DerivedData//Build/Products/-iphonesimulator/XXXX.app 将您的 .app 文件复制到任何位置创建一个压缩 zip 文件。将此 zip 文件提交到 fb