Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mapbox strip-frameworks.sh: no such file or directory

Tags:

xcode

mapbox

i am trying to integrate mapBox sdk with xcode, i followed the steps metioned here:

[https://www.mapbox.com/ios-sdk/#manual][1]

and i got the following error

bash: /Users/user/Library/Developer/Xcode/DerivedData/MapApp-fyrihrjtsamtymbsepguswqhltvs/Build/Products/Debug-iphonesimulator/MapApp.app/Frameworks/Mapbox.framework/strip-frameworks.sh: No such file or directory
like image 555
Hanane Avatar asked Jun 30 '16 11:06

Hanane


Video Answer


3 Answers

I solved this problem by making sure the Mapbox framework was embedded before the script was run.

Your Build Phases tab should show Embed Frameworks first, like this: Correct Build Phases ordering

like image 135
Brian Avatar answered Nov 05 '22 09:11

Brian


This actually fixed it for me. Drag Embedded Frameworks section above the script phase and it works.

like image 37
leerie simpson Avatar answered Nov 05 '22 11:11

leerie simpson


In the Manual Installation docs, there is a step to follow for configuring Xcode. Be certain you followed these steps

  • Drag Mapbox.framework into your project’s Embedded Binaries section in the project editor
  • click the + button at the top and select “New Run Script Phase”

Here are some other discussions that may be useful, but in general the Manual steps from your original link should work.

  • https://github.com/mapbox/mapbox-gl-native/issues/4729
  • https://github.com/mapbox/mapbox-gl-native/blob/master/platform/ios/INSTALL.md#dynamic-framework

I just followed the manual steps for the current version of the Mapbox iOS SDK, and this is what the downloaded folder looks like (some items snipped). So the file should be there, it is likely a Xcode configuration problem.

enter image description here

like image 41
RobLabs Avatar answered Nov 05 '22 09:11

RobLabs