Lipo Error!! can't open input file

后端 未结 21 2042
北海茫月
北海茫月 2020-12-14 14:46

My application was working perfectly fine, then I started integrating SDK for push notification and stop the integration in between. I even deleted the SDK from my project a

相关标签:
21条回答
  • 2020-12-14 15:25

    Bundle Compile Source Files

    you must have to add .m files in Compile Sources of Bundle Target.

    0 讨论(0)
  • 2020-12-14 15:27

    I got it to work, I just made a simple change in my Project target-> Build setting-> Build Active Architecture only and set this Build Active Architecture only to YES. And it's working fine now..

    update After 6 months:

    Again i face this issue after updating to Xcode5. This time i have to update Project target-> Build setting->Valid Architecture to armv7. I removed armv7s and arm64.

    0 讨论(0)
  • 2020-12-14 15:28

    Try removing file(s) that you've deleted from Project target -> Build Phases -> Compile Sources.

    Hope that helps.

    0 讨论(0)
  • 2020-12-14 15:30

    None of that worked for me.

    After a bit of digging (git reset, etc.) I found that my workspace was corrupted. I deleted the content of the project.xcworkspace and all went back to normal.

    Reason why even reset didn't work is because the .xcworskpace is in my .gitignore (like many I guess).

    0 讨论(0)
  • 2020-12-14 15:31

    In my case, I executed my application after some updates, then tried to commit it on git, and conflicts ruined my code. That was sad story.

    But luckily I had one backup on my system and I replaced ruined code with my local code.

    Now while executing I felt same problem. Then cleaning the project was the magical stick for me. I cleaned the project and I was good to go.

    0 讨论(0)
  • 2020-12-14 15:31

    In my case, the problem occurred because I had an object (AVAudioPlayer) instance variable declared with the same name in two controllers - the app delegate and one other controller. Strange, but the problem disappeared when I renamed one of them.

    0 讨论(0)
提交回复
热议问题