Do Corona Native support Cocoapods?

We would like to use Corona Native with our company SDK which use Cocoapods.

We start with Corona Template App and when we use Cocoapods to add framework to the xcode project, the following error happens and we don’t know how to fix it.

There is an error:

diff: /…/Podfile.lock: No such file or directory

diff: /Manifest.lock: No such file or directory

error: The sandbox is not in sync with the Podfile.lock. Run ‘pod install’ or update your CocoaPods installation.

VVbxgAd.png

Do anyone know how to fix it? Also, is there anyone who can use Corona with Cocoapods successfully? Thanks.

The error says you need to run ‘pod install’, have you done that from within the ios folder yet? I presume thats also where your Podfile is?

I’m using Cocoapods with enterprise, so it is possible. You will get a few errors initially trying to add Cocoapods, I had to tweak a few settings to get it working correctly, but unfortunately I can’t remember what I did now!

Thanks for your reply.

I have tried to pod install and remove all pods and start it over again but it isn’t work.

Glad to know that you can work with Cocoapods. In that case there should be some error on my side. I am just afraid Corona never work with Cocoapods before.

I will try to figure out what is happening. If anyone who have experienced this before and have a solution, please help.

I think @TandG nailed it.

There’s nothing special about the App Project Template, it’s just a preconfigured Xcode project.  If you think that it might be causing an issue, create a default Xcode project and add your CocoaPods to that and see how that goes (I would expect you to see exactly the same messages).

From the error messages you posted it looks like an environment variable your CocoaPods installation expects isn’t set.

@cutietik, I don’t want to hijack this thread, but how did you include the image in your post? 

Rob

@Perry Clarke, we will try again. Confirming that Corona project won’t conflict with Cocoapods give us enough direction when we try. Hope we can figure it out soon.

@Rob Miracle, upload the image to imgur.com and paste the link into the Url of the image button of the Textarea. Why did you ask that?

We are trying to figure out how to make the thumbnails bigger.

@cutielik I never got that error, but let us know if any others come up.

This probably won’t help your issue, but make sure you have “$(inherited)” in your “Other link flags” found in your targets build settings. Also a good plan to double check that it’s in “Header search paths” and “Framework search paths” as well.

@Perry/Rob, I don’t suppose you have a Swift sample project coming anytime soon do you? I imagine that would encourage a lot of people to start messing around with enterprise now that it’s free!

@TandG Yes. Let me report once we get that fixed. We will double check all of the settings. May be we have overlooked some setting.

@TandG, I’m seeing if we can get a Swift based example. 

Rob

@TandG

@Corona Staff

see XCode PROJECT - APP - Configurations - Base on Configuration File. 

Corona  is CoronaApp, Normal Cocospods Xcode  Project Pods-App.release.

now CoronaApp && Pods-App.release conflict,  Pods-App.release can’t work.

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target App to Pods/Target Support Files/Pods-App/Pods-App.debug.xcconfig or include the Pods/Target Support Files/Pods-App/Pods-App.debug.xcconfig in your build configuration (CoronaApp.xcconfig).

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target App to Pods/Target Support Files/Pods-App/Pods-App.release.xcconfig or include the Pods/Target Support Files/Pods-App/Pods-App.release.xcconfig in your build configuration (CoronaApp.xcconfig).

The error says you need to run ‘pod install’, have you done that from within the ios folder yet? I presume thats also where your Podfile is?

I’m using Cocoapods with enterprise, so it is possible. You will get a few errors initially trying to add Cocoapods, I had to tweak a few settings to get it working correctly, but unfortunately I can’t remember what I did now!

Thanks for your reply.

I have tried to pod install and remove all pods and start it over again but it isn’t work.

Glad to know that you can work with Cocoapods. In that case there should be some error on my side. I am just afraid Corona never work with Cocoapods before.

I will try to figure out what is happening. If anyone who have experienced this before and have a solution, please help.

I think @TandG nailed it.

There’s nothing special about the App Project Template, it’s just a preconfigured Xcode project.  If you think that it might be causing an issue, create a default Xcode project and add your CocoaPods to that and see how that goes (I would expect you to see exactly the same messages).

From the error messages you posted it looks like an environment variable your CocoaPods installation expects isn’t set.

@cutietik, I don’t want to hijack this thread, but how did you include the image in your post? 

Rob

@Perry Clarke, we will try again. Confirming that Corona project won’t conflict with Cocoapods give us enough direction when we try. Hope we can figure it out soon.

@Rob Miracle, upload the image to imgur.com and paste the link into the Url of the image button of the Textarea. Why did you ask that?

We are trying to figure out how to make the thumbnails bigger.

@cutielik I never got that error, but let us know if any others come up.

This probably won’t help your issue, but make sure you have “$(inherited)” in your “Other link flags” found in your targets build settings. Also a good plan to double check that it’s in “Header search paths” and “Framework search paths” as well.

@Perry/Rob, I don’t suppose you have a Swift sample project coming anytime soon do you? I imagine that would encourage a lot of people to start messing around with enterprise now that it’s free!

@TandG Yes. Let me report once we get that fixed. We will double check all of the settings. May be we have overlooked some setting.