Skip to content
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

Installation doesn't work #341

Open
masaldana2 opened this issue Nov 18, 2020 · 3 comments
Open

Installation doesn't work #341

masaldana2 opened this issue Nov 18, 2020 · 3 comments

Comments

@masaldana2
Copy link

masaldana2 commented Nov 18, 2020

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

@masaldana2 masaldana2 changed the title Installation doesn works Installation doesn't work Nov 18, 2020
@chezzdev
Copy link
Contributor

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.

@Samuel-Morgan-Tyghe
Copy link

Samuel-Morgan-Tyghe commented Apr 14, 2021

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.

@Samuel-Morgan-Tyghe
Copy link

(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 "$@"

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

3 participants