Invalid Bundle, The bundle contains disallowed nested bundles, contains disallowed file 'Frameworks'

后端 未结 5 1145
独厮守ぢ
独厮守ぢ 2021-02-05 03:23

I added a shared framework to share code between app and watch extension. Later I removed the shared framework since it cause lots of problems. I can build and run my app on iph

5条回答
  •  悲&欢浪女
    2021-02-05 04:09

    I still do not fully understand what causes the issue, but I've stumbled upon an answer that has finally solved the issue for me.

    https://github.com/CocoaPods/CocoaPods/issues/4203

    Specifically, the post by mikehouse on Oct 12, 2015 was the solution to the the problem.

    Add the following run script to ALL you embedded extension targets. In my case I had to add the run script as a build phase to my Today extension and my Apple Watch App extension.

    cd "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/"
    if [[ -d "Frameworks" ]]; then 
        rm -fr Frameworks
    fi
    

提交回复
热议问题