mapbox/mapbox-vision-ios

Installation doesn't work

masaldana2 opened this issue · 3 comments

Description

create private sk key
include key in text file
install thru cocoapods
-success
-build
-doesnt work

install thru carthage
"Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/miguelsaldana/Documents/iPhone\ developer/vision\ sdk\ 11/Carthage/Checkouts/mapbox-events-ios/MapboxMobileEvents.xcodeproj -scheme MapboxMobileEvents -configuration Release -derivedDataPath /Users/miguelsaldana/Library/Caches/org.carthage.CarthageKit/DerivedData/12.2_12B45b/mapbox-events-ios/v0.9.5 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/dp/lq80jypj5s70d6bvp8fw95fw0000gn/T/mapbox-events-ios SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/miguelsaldana/Documents/iPhone developer/vision sdk 11/Carthage/Checkouts/mapbox-events-ios)
"
-doesnt work

Expected behavior

A clear and concise description of what you expected to happen.

Actual behavior

framework link errors
i.e. 'CoreLocation/Corelocation.h' file not found

Screenshots

If applicable, add screenshots to help explain your problem.

Configuration

iphone x, iphone 8 , iphone 12
ios 13,ios14
imac pro

  • Frameworks versions (leave the ones you're using):
    ALL

Additional context

have you guys tested it? I tried xcode 11.2 xcode 11.7 xcode12

The log you've provided is caused by a known Carthage issue. Please use a workaround, provided by Carthage.

If the installation doesn't work for you via CocoaPods too, please provide more details.

The log you've provided is caused by a known Carthage issue. Please use a workaround, provided by Carthage.

If the installation doesn't work for you via CocoaPods too, please provide more details.

Doesn't fix problem, I recommend alternative installation steps.

(and the other suggested Carthage solution doesn't work)

How to use
Save the script (👇) to your project (e.g. as a carthage.sh file).
Make the script executable chmod +x carthage.sh
Instead of calling carthage ... call ./carthage.sh ...
E.g. ./carthage.sh build or ./carthage.sh update --use-submodules
Script

#!/usr/bin/env bash

carthage.sh

Usage example: ./carthage.sh build --platform iOS

set -euo pipefail

xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX)
trap 'rm -f "$xcconfig"' INT TERM HUP EXIT

For Xcode 12 make sure EXCLUDED_ARCHS is set to arm architectures otherwise

the build will fail on lipo due to duplicate architectures.

echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200 = arm64 arm64e armv7 armv7s armv6 armv8' >> $xcconfig
echo 'EXCLUDED_ARCHS = $(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)_NATIVE_ARCH_64_BIT$(NATIVE_ARCH_64_BIT)_XCODE$(XCODE_VERSION_MAJOR))' >> $xcconfig

export XCODE_XCCONFIG_FILE="$xcconfig"
carthage "$@"