IOS Run custom shell script 'embed pods framework' file not found error

匿名 (未验证) 提交于 2019-12-03 00:48:01

问题:

I am getting an error when building my app after i removed reference to a framework i added incorrectly. i am new to ios and cocoapods

/Users/MyMac/Library/Developer/Xcode/DerivedData/MyApp-ewxrexwuczochyctnqvlyusrtvvy/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Script-5874133373474758EEC76CFD.sh: line 2: /Users/MyMac/Documents/MyApp/Pods/Target Support Files/Pods-MyApp/Pods-MyApp-frameworks.sh: No such file or directory

I am aware that the file and directory don't exist and that is the way it should be but where is it finding the reference to this file so i can remove it and be rid of the error.

I have checked the following:

  • Linked Frameworks andLibraries under the general tab of my project
  • The frameworks group in the project
  • framework search paths under build settings tab
  • i have also run pod update after removing it from the pod file

How can i fix this?

Edit back story

I was trying to add the framework https://github.com/Alliants/ALAccordion . in the instruction it said to use

# Podfile target 'My Target' do   use_frameworks!   pod "ALAccordion" end 

so i added MyApp where my Target is and it created a framework named Pods-MyApp which i cant remove completely.

hope this helps

回答1:

Cocoapods wrote a tool to completely deintegrate all of this stuff from your project so it goes back to running standalone. It sounds like you had an issue adding the correct target, so use this:

https://github.com/CocoaPods/cocoapods-deintegrate

Then try again so you can at least start from good ground. Hope this helps!



回答2:

It happened with a prerelease version of Cocoapods 1.2.0.beta.1, by reverting to stable version and running pod install, then clean build, it worked.



回答3:

why

use_frameworks!

after

target ... do

here is example

platform :ios, '8.0' use_frameworks!  inhibit_all_warnings!  target 'XXX' do   pod 'RealmSwift' end  target 'XXXTests' do   pod 'RealmSwift' end 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!