美文网首页
重拾童年之 GBA4iOS 安装

重拾童年之 GBA4iOS 安装

作者: v2Next | 来源:发表于2016-11-21 08:41 被阅读0次

    精灵宝可梦 太阳/月亮 马上就要发售了,前段时间为了能在 iOS 设备上玩口袋,便开始寻找 app,找到了个在线安装的 GBA4iOS ,但有个问题就是证书会过期,玩不了几天就启动不能了。

    之后开始直接找工程自己编译,这里我找的是 Bitbucket 上的一个工程。下载好然后解压并编译,踩坑过程开始。。。

    坑1, 这个工程的第三方库都适用 Cocoapod 安装的,然而在运行 pod install 的时候提示

    [!] Invalid `Podfile` file: [!] The specification of `link_with` in the Podfile is now unsupported, please use target blocks instead..
    

    然后去 Podfile 文件并修改

    // 原 Podfile 文件
    source 'https://github.com/CocoaPods/Specs.git'
    
    platform :ios, "7.0"
    
    inhibit_all_warnings!
    
    link_with 'GBA4iOS', 'GBA4iOS-Simulator'
    
    pod 'RSTWebViewController', :git => 'https://github.com/rileytestut/RSTWebViewController-Legacy.git'
    pod "AFNetworking", "~> 2.4"
    pod "PSPDFTextView", :git => 'https://github.com/steipete/PSPDFTextView.git'
    pod "Dropbox-iOS-SDK", "~> 1.3.0"
    pod "CrashlyticsFramework", "~> 2.1.0"
    
    // 修改后 Podfile 文件
    source 'https://github.com/CocoaPods/Specs.git'
    
    platform :ios, "7.0"
    
    def myPods
        pod 'RSTWebViewController', :git => 'https://github.com/rileytestut/RSTWebViewController-Legacy.git'
        pod "AFNetworking", "~> 2.4"
        pod "PSPDFTextView", :git => 'https://github.com/steipete/PSPDFTextView.git'
    #   pod "Dropbox-iOS-SDK", "~> 1.3.0"
        pod "CrashlyticsFramework", "~> 2.1.0"
    end
    
    inhibit_all_warnings!
    
    #link_with 'GBA4iOS', 'GBA4iOS-Simulator'
    
    target 'GBA4iOS' do
        myPods
    end
    
    target 'GBA4iOS-Simulator' do
        myPods
    end
    

    坑2,因为 Dropbox SDK 多次 pod 失败,所以我索性下载离线包拷贝进工程里面。下载地址为 dropbox link , 解压后里面会有 README 安装说明文件,跟着操作即可。

    坑3, pod install 都成功了应该可以编译了吧,然而并没有。

    library not found for -lPods
    

    然后开始各种 Google & StackOverflow,大概 10 分钟后找到了答案,删除 Build Phases - Link Binary With Libraries 里面的 libPods.a


    Finally, 终于可以编译了。。。
    Enjoy it.

    相关文章

      网友评论

          本文标题:重拾童年之 GBA4iOS 安装

          本文链接:https://www.haomeiwen.com/subject/ehqlpttx.html