in Education by
I'm using this script for building application from command line: #!/bin/bash TARGET="signtest" CONFIGURATION="Debug" SDK="iphoneos" IDENTITY="iPhone Developer: Marcin Zyga (CLJR93MXJ6)" KEYCHAIN="/Users/admin/Library/Keychains/login.keychain" PASSWORD="admin" security unlock-keychain -p ${PASSWORD} ${KEYCHAIN} xcodebuild -target "${TARGET}" -configuration ${CONFIGURATION} -sdk iphoneos CODE_SIGN_IDENTITY="${IDENTITY}" PROVISIONING_PROFILE="94D99766-0268-4E0E-B8D1-053063BB2DA1" OTHER_CODE_SIGN_FLAGS="--keychain ${KEYCHAIN}" I'm trying to compile application and sign it with my provisioning profile. I'm getting: Build settings from command line: CODE_SIGN_IDENTITY = iPhone Developer: Marcin Zyga (CLJR93MXJ6) OTHER_CODE_SIGN_FLAGS = --keychain /Users/admin/Library/Keychains/login.keychain PROVISIONING_PROFILE = 94D99766-0268-4E0E-B8D1-053063BB2DA1 SDKROOT = iphoneos5.0 === BUILD NATIVE TARGET signtest OF PROJECT signtest WITH CONFIGURATION Debug === Check dependencies [BEROR]Code Sign error: The identity 'iPhone Developer: Marcin Zyga (CLJR93MXJ6)' doesn't match any valid certificate/private key pair in the default keychain ** BUILD FAILED ** This is when I'm invoking as sudo su - probably I'm missing a valid configuration in my keychain. When I'm invoking this build script as admin user I've got this: Build settings from command line: CODE_SIGN_IDENTITY = iPhone Developer: Marcin Zyga (CLJR93MXJ6) OTHER_CODE_SIGN_FLAGS = --keychain /Users/admin/Library/Keychains/login.keychain PROVISIONING_PROFILE = 94D99766-0268-4E0E-B8D1-053063BB2DA1 SDKROOT = iphoneos5.0 === BUILD NATIVE TARGET signtest OF PROJECT signtest WITH CONFIGURATION Debug === Check dependencies [BEROR]Code Sign error: Provisioning profile '94D99766-0268-4E0E-B8D1-053063BB2DA1' can't be found ** BUILD FAILED ** My provisioning profile definitly exists. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
You've got two problems. The first is there's something in Xcode 4 and later that is changing what I believe is the search path or access rights of the command line build settings, because I, ALSO, am failing with the same codesign [BEROR] when building from command line but not Xcode directly. I wish I knew the answer to the first problem. I've tried explicitly setting the developer identity, using the generic "iPhone Developer", updating the project settings to have the [sdk-iphoneos*]="", etc., and I have to yet discover the solution. Did this used to work for you and then you did a Mac OS/Xcode update and now it doesn't? That's my dilemma. ANYWAY, your second problem is easily fixable: Pass the entire path and filename for the PROVISIONING PROFILE, a-la "/Users/zyga/Library/MobileDevice/ProvisioningProfiles/94D99766-0268-4E0E-B8D1-053063BB2DA1.mobileprovision" ...A

Related questions

0 votes
    As a preface: I want to do this as a learning exercise. I'm not trying to produce a commercially ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    As a preface: I want to do this as a learning exercise. I'm not trying to produce a commercially ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 23, 2022 in Education by JackTerrance
0 votes
    What are some of the prerequisites that you should consider while building a Selenium Cucumber automation application?...
asked Jul 22, 2021 in Technology by JackTerrance
0 votes
    I typically start up my development version of WLS 10.3.3 from the command line by launching startWebLogic. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    How to change Swift version from 5 to 4 in Xcode?...
asked Mar 9, 2021 in Technology by JackTerrance
0 votes
    Suppose I am writing a function fromPaths(paths: List[String]): Node to build a tree from a few ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 16, 2022 in Education by JackTerrance
0 votes
    Which module in the python standard library parses options received from the command line? a) getarg b) getopt c) main d) os...
asked Jan 2, 2023 in Technology by JackTerrance
0 votes
    Which module in the python standard library parses options received from the command line? a) getarg b) getopt c) main d) os...
asked Jan 2, 2023 in Technology by JackTerrance
0 votes
    Have been needing to write some code that recognises (and captures) when there's incoming/outgoing smb ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 8, 2022 in Education by JackTerrance
0 votes
    Is it possible in Windows to get a folder's size from the command line without using any 3rd party ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 2, 2022 in Education by JackTerrance
0 votes
    I've got two different apps that I am hosting (well the second one is about to go up) on Amazon EC2. ... path ; ec2-describe-instances Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    I have file called q.r and it has chmod of 755, how can I run it using a command-line? sayHello...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    I want to supply some command-line parameters from a R script I have. And it runs on windows. I just want it ... help me with it? Select the correct answer from above options...
asked Jan 23, 2022 in Education by JackTerrance
0 votes
    The Sitecore package wizard can be used to build a package containing data and files for the local Sitecore ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 16, 2022 in Education by JackTerrance
0 votes
    Write a Java program to read two strings from command line arguments and check the equality of two strings using string function. Select the correct answer from above options...
asked Dec 9, 2021 in Education by JackTerrance
...