美文网首页
swift-远程推送-开发问题

swift-远程推送-开发问题

作者: ChaosHeart | 来源:发表于2022-07-07 10:34 被阅读0次

    1.问题

    错误:Building for iOS Simulator, but the linked and embedded framework '***' was built for iOS + tvOS SimulatorSimulator-x86_64
    设置:Build Settings -> Validate Workspace

    20201217200220312.png
    先改为YES,进行编译成功以后,再改为NO,进行编译
    参考:
    https://blog.csdn.net/guoyongming925/article/details/111320840

    2.问题

    错误:building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64
    设置:Build Settings -> Excluded Architectures

    e2ded90befa5466d8ac4532f78584d57.png
    参考:
    https://blog.csdn.net/Morris_/article/details/122077251

    3.引入插件

    截屏2022-07-04 11.16.38.png

    4.MANS报错

    Failed to register observatory port with mDNS with error -65555.


    截屏2022-07-07 17.39.17.png

    (1)将info.plist文件复制并改名为info-Release.plist

    (2)将info.plist文件改名为info-Debug.plist

    (3)在info-Debug.plist文件中添加

    //key:
    Privacy - Local Network Usage Description 
    //value:
    Allow Flutter tools on your computer to connect and debug your application.This prompt will not appear on release builds.
    
    //key:
    Bonjour services
    //value:
    _dartobservatory._tcp
    
    截屏2022-07-07 17.43.30.png

    (4)将info.plist的路径改为
    Runner/Info-$(CONFIGURATION).plist


    截屏2022-07-08 10.40.48.png

    (5)在 target’s -> Build Settings > Build Phases > Copy Bundle Resources build phase, 如果有Info-Release.plist 删除即可(已删除完的样子)


    image.png

    参考:
    https://www.jianshu.com/p/1fc3d0dc9f7a

    相关文章

      网友评论

          本文标题:swift-远程推送-开发问题

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