Lonergan6275
Lonergan6275

Reputation: 2038

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

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:

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

Upvotes: 6

Views: 7898

Answers (3)

Kof
Kof

Reputation: 25303

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.

Upvotes: 0

typedef
typedef

Reputation: 937

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

Upvotes: -1

dokun1
dokun1

Reputation: 2110

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!

Upvotes: 9

Related Questions