Skip to content

Bug while building for release iOS application with Xcode, which has plugin with CocoaPods #2552

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tsonevn opened this issue Feb 16, 2017 · 4 comments

Comments

@tsonevn
Copy link
Contributor

tsonevn commented Feb 16, 2017

The below-given error will be displayed when you try to build an app for release while using Xcode

didiff: /../Podfile.lock: No such file or directory
didiff: /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.

Workaround
To workaround this behavior you could follow the below-described steps.

  1. remove platforms folder from the project -> rm -rf platforms
  2. run tns prepare ios command
  3. cd platforms/ios
  4. run pod install
  5. open with Xcode <project_folder>/platforms/ios/<project_name>.xcworkspace file
  6. open the project Build Settings
  7. scroll down to the end of the file and look for PODS_ROOT
  8. the final steps is to copy the path from Debug flag and to set the set the same path for Release.
@imtodor
Copy link

imtodor commented Feb 21, 2017

In addition to the above changes, it might be necessary to change the Preprocessor Macros of the Debug and Release under Build Settings to become:

screen shot 2017-02-21 at 16 21 06

The initial issue is that the Release is empty and the Debug has the two valies "COCOAPODS=1 DEBUG=1".

@Natalia-Hristova
Copy link

I can confirm that the same errors still appear with CLI 3.4.2 Xcode 9.2 cocoapods 1.4.0. Used nativescript-iqkeyboardmanager plugin to test it.

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.

@lambourn
Copy link

lambourn commented Apr 6, 2018

@Natalia-Hristova does this help NativeScript/NativeScript#5150

@rosen-vladimirov
Copy link
Contributor

This issue should be fixed by #4559
You can try it with latest official CLI and reopen it in case you still reproduce it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants