如何使用Bundle存档应用程序?

时间:2013-12-29 08:41:30

标签: ios xcode bundle archive ipa

我最近遇到了在iPhone应用程序中安装捆绑包的需要。为了使我的问题尽可能清楚,我决定只是为了解释而创建一个小的空应用程序。

这是一个逐步重现我的问题的方法。我正在使用Xcode 5.0(5A1413)。

  1. 打开Xcode,创建一个新项目,iOS应用程序,单一视图 单击“应用”,单击“下一步”。
  2. 将其命名为InBundleTestApp。离开了 默认设置的方式,然后单击“下一步”。
  3. 选择什么 您想要的文件夹,然后单击“创建”。
  4. 打开Xcode后,单击“添加” 选择目标并选择Bundle,然后单击Next。
  5. 称之为InnerBundle 并保留其余部分的默认设置。
  6. 单击“完成”。
  7. 转到InBundleTestApp目标的Build Phases选项卡。
  8. 添加 InnerBundle.bundle到“复制捆绑资源”列表。
  9. 转到 InnerBundle目标的Build Settings选项卡。
  10. 将Base SDK从最新的OS X(OS X 10.8)更改为最新的iOS X(iOS 7.0)。
  11. 将InnerBundle设置为活动目标。通过点击编译InnerBundle 命令-B。
  12. 将InBundleTestApp设置为活动目标并进行编译 它通过击中Command-B。
  13. 通过在菜单中选择产品/存档来存档InBundleTestApp。
  14. 我们在调试器中得到以下内容:

      
        

    CpResource     /Users/neptune/Library/Developer/Xcode/DerivedData/InBundleTestApp-arelnznnammspkgauywlbunqsaot/Build/Intermediates/ArchiveIntermediates/InBundleTestApp/BuildProductsPath/Release-iphoneos/InnerBundle.bundle     /Users/neptune/Library/Developer/Xcode/DerivedData/InBundleTestApp-arelnznnammspkgauywlbunqsaot/Build/Intermediates/ArchiveIntermediates/InBundleTestApp/InstallationBuildProductsLocation/Applications/InBundleTestApp.app/InnerBundle.bundle

      
         

    cd / Users / neptune / Documents / InBundleTestApp

         

    setenv PATH   “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/ sbin目录:/ sbin目录“

         
        

    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude     .git -exclude .hg -strip-debug-symbols -strip-tool     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip     -resolve-src-symlinks /Users/neptune/Library/Developer/Xcode/DerivedData/InBundleTestApp-arelnznnammspkgauywlbunqsaot/Build/Intermediates/ArchiveIntermediates/InBundleTestApp/BuildProductsPath/Release-iphoneos/InnerBundle.bundle     /Users/neptune/Library/Developer/Xcode/DerivedData/InBundleTestApp-arelnznnammspkgauywlbunqsaot/Build/Intermediates/ArchiveIntermediates/InBundleTestApp/InstallationBuildProductsLocation/Applications/InBundleTestApp.app

             

    错误:     /Users/neptune/Library/Developer/Xcode/DerivedData/InBundleTestApp-arelnznnammspkgauywlbunqsaot/Build/Intermediates/ArchiveIntermediates/InBundleTestApp/BuildProductsPath/Release-iphoneos/InnerBundle.bundle:     没有这样的文件或目录

      

    现在我的问题是:为什么我们会收到此错误? 我在上面的13个步骤中做错了什么?

0 个答案:

没有答案