I am integrating Microsoft Itunes SDK in my iOS app. The app already include Azure AD for authentication of user. However now I want my app to communicate with Intunes application and fetch its login.
The microsoft documentation has specified proper step however I am stuck with use of IntuneMAMConfigurator tool.
Can anyone tell me how to use this(IntuneMAMConfigurator) tool exactly?
I had issues with executing the file on macOS Catalina, I had to first give the file access to execute with chmod +x IntuneMAMConfigurator and then run it with ./IntuneMAMConfigurator -i <path> -e <path>
I know it's late to answer this question, but I faced the same issue and Microsoft's documentation is no help on this. To help other folks out there here are the steps.
To run IntuneMAMConfigurator, download it from the SDK repo: https://github.com/MicrosoftDocs/IntuneDocs/blob/master/intune/app-sdk-ios.md
Do not try to open it by double click, this won't work.
Open Terminal and type /path/to/IntuneMAMConfigurator -i plistfile -e entitlementfile
/path/to/ : Type in the full path where IntuneMAMConfigurator is present.
plistfile : Copy and paste the plist file path of your project
entitlementfile : Copy and paste the file path of your entitlements file.
In addition to this if you do not want your existing plist file to change you can create a new plist file by following command:
/path/to/IntuneMAMConfigurator -i plistfile -e entitlementfile -o new plistFile
IntuneMAMConfigurator tool:
Usage 1:
IntuneMAMConfigurator -i /path/to/info.plist -e /path/to/entitlements
Usage 2:
IntuneMAMConfigurator -generateOpenInIcons /path/to/app.app
Optional Usage 1:
IntuneMAMConfigurator -i /path/to/info.plist -e /path/to/entitlements -o /path/to/new/info.plist
Optional Usage 2:
IntuneMAMConfigurator -generateOpenInIcons /path/to/app.app -o /path/to/output/directory
In my case this solution works for me.
Ensure the Entitlements plist is specified in the "Custom Entitlements" field of the project's "iOS Bundle Signing" options for all the appropriate Configuration/Platform combinations.
Also check, Wheather your project paths contains any space means in your path folder name having space.
Related
I am new to docker and was working through the docker book and just got to the building a Sinatra web application part. But the link provided to download the source code doesn't exist. I tried using the GitHub link for the code but that isn't working as well. I need to make a binary executable as the next step and I am unable to do so.
$ cd sinatra
$ wget --cut-dirs=3 -nH -r -e robots=off --reject="index.html","
Dockerfile" --no-parent http://dockerbook.com/code/5/sinatra/ webapp/
This is what I am supposed to do but if you copy paste the link into your browser, it doesn't work. I also tried making each folder I needed and physically making files but in the next step which is chmod +x webapp/bin/webapp, it says that the directory does not exist even though it does.
I am trying the automate the build process of Xcode using ant scripts. I used the security import command with -A and -T to import the certificates.
Command which I used to import the certificate
security import <PATH till the certificate> -k <PATH of keychain> -t priv -P <password> -T <codeSigning Path> -T <Xcode.app Path> -A
But still when I run the xcodeBuild command to archive the build, it pops up a pop which asks for the permission to access the key chain
ask for the permission to access the key chain
Please post as soon as you see this post.
I've had this issue as well. It seems Mac won't let anything automatically access your keychain. Best solution was to check the "Do this every time" box in the popup to prevent it bothering you again
It's Working fine
If its default login keychain the above command will work.
If you have created the login keychain then some times code sign will ask for permission.Solution for this restore your login keychain to default version by taking a backup of all the certificates from the login keychain.
I'm trying to getting error logs from Parse Crash reporting for my app, its logging but not showing symbolic crash reports, also at Parse they're asking to add symbolic files for my app. I'd search for it and found that needs to upload symbolic files each time when you create a new build.
This is the sample script from Parse:
export PATH=/usr/local/bin:$PATH
cd "<path_to_cloudcode_folder>"
parse symbols -p "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"
I want to add dynamic path to path_to_cloudcode_folder because we're working remotely via git so the path_to_cloudcode_folder is different based on each user.
How do I add a dynamic path there, so it will work at all of the places without error.
P.S. I thought $SCRROOT would work, but it won't. It gives me error,
No such file or directory.
What's wrong?
echo $SCRROOT
gives me following folder path,
/Hagile/Workspace/Git/TestApp
Above path contains a folder, parse having 3 sub folders. i.e.
- Hagile |
- Workspace |
- Git |
- TestApp |
- cloud | config | public
This worked for me:
cd "${PROJECT_DIR}"/<path to cloud folder>/parse
My problem laid in the fact that I had spaces in my path and this was tripping up the compiler. Providing the double quotes did it for me.
See this more in-depth explanation.
#Julian answer help me to get this working ! I needed to change it little.
echo "-start-----------------------------"
export PATH=/usr/local/bin:$PATH
cd "${PROJECT_DIR}"/parse
parse symbols -p "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"
echo "-end-----------------------------"
Here's the output
I have the problem that when I try to create the .apk file with the cmd line and the aapt order, It gives me the following error:
"...\res\layout-land\activity_statistics.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '#drawable/bg_session')."
This error goes further thrue all layout and drawable folders.
My cmd order is the following one:
"...\Android\sdk\platform-tools\aapt.exe"
package -v -f
-A "...\workspace\WBRLight\assets"
-M "...\workspace\WBRLight\AndroidManifest.xml"
-S "...\workspace\WBRLight\res"
-I "...\Android\sdk\platforms\android-17\android.jar"
-F "...\workspace\WBRLight\bin\WBRLight.unsigned.apk" "...\workspace\WBRLight\bin"
I checked my files if they are corrupted and clean my project folder already.
With eclipse its working, but I want to to it with the cmd line order.
Could anybody help me please ? I try to solve it now since three days...
So i figured it out:
I have to "crunch" all picture in the res folder first:
aapt crunch -v -S \res -C \bin\res
And then I pointed as a source folder to the res dir and to the bin\res dir. Also added --no-chrunch --generate-dependencies
aapt package --no-crunch --generate-dependencies -v -f
-M \AndroidManifest.xml"
-S \bin\res
-S \res
-A \assets
-I \android.jar
-F \bin\APPNAME.unsigned.apk \bin
Now Its working perfectly. Also with the .9.png 9patch pictures.
I found that while using multiple native extensions, there could be a filename conflict. Etc. two different extensions use the same file (and same path)
res/values/strings.xml
inside the ANE and during APK packaging when these resources are merged in temp folder, this file will be overwritten leading to similar error message.
Solution I've found so far is to enter the ANE archive and rename the conflicting file. You can also contact author of the extension to update it or rebuild it by yourself if possible.
First I have a Mac Mini running Server on Mavericks and have Xcode 5 installed. On the server I have my iOS projects set up with Bots to run automated builds of my Github repo on each commit to master. What I want to find out is if anyone already has configure this kind of setup to work with automated builds being sent to TestFlight.
The script that worked previously with a Jenkins build process is pasted below, but throws an error and doesn't upload when the bot completes it's build. I have this script run on the "post-action" of the archive process of my app.
Server log error:
Print: Entry, "CFBundleVersion", Does Not Exist
error: Specified application doesn't exist or isn't a bundle directory : '/Library/Server/Xcode/Data/BotRuns/Cache/s892fj1n2-f4bb-2514-522v-2a23d0f0c725/DerivedData/Build/Products/Debug-iphoneos/myApp.ipa'
Script:
PLIST_FILE=$(echo -n "${SRCROOT}/${INFOPLIST_FILE}")
BUILD_TYPE=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PLIST_FILE}")
API_TOKEN="<API_TOKEN>"
TEAM_TOKEN="<SECRET>"
APP="${BUILD_ROOT}/Debug-iphoneos/${FULL_PRODUCT_NAME}"
/bin/rm "/bots/${PRODUCT_NAME}.ipa"
/usr/bin/xcrun -sdk iphoneos PackageApplication -v "${APP}" -o "/bots/${PRODUCT_NAME}.ipa"
/usr/bin/curl "http://testflightapp.com/api/builds.json" \
-F file=#"/bots/${PRODUCT_NAME}.ipa" \
-F a pi_token="${API_TOKEN}" \
-F team_token="${TEAM_TOKEN}" \
-F notes="Build uploaded automatically from server." \
-F distribution_lists="internal"
UPDATE 11/20:
A good resource to try:
TestFlight Bots
I didn't get it to work a couple weeks ago but the post has been updated since I last tried.
This looks like a permissions issue. Are you able to access \Library\XCode\Data folder? I was able to run your script (other than upload to testflight). I had to give read access to \Data and write access to destination folder and I see the ipa created.
I am researching ways to switch my team from our Jenkins farm for iOS builds to the new Xcode bots server. I have a very similar problem to solve regarding continuous deployment upon a successful CI build/test.
I don't have an answer (yet), but, wanted to share some things I found that may help you.
Two threads may help give clues to why your TestFlight upload is failing on the bots server.
According to Kra Larivain with this post regarding the CocoaPods CLI and Xcode bots:
"the build runs on the bot as an unprivileged user with no shell (_teamsserver with /usr/bin/false as a shell)"
"add _teamsserver to the password-less sudoers (%_teamsserver ALL=(ALL) NOPASSWD: ALL in your sudoers file). You probably want to be a little bit more clever and only grant it sudo privilege" for the commands actually needed
/Library/Server/Xcode/Data is set to be rw by the _teamsserver user only
"add to your pre action the following script, where BUILD_USER is your, well, build user. Make sure you Provide build settings from the main target, SRCROOT won’t be set otherwise (the default is None)." This example is for CocoaPods, but, could be adapted to your use
if [ `whoami` = '_teamsserver' ]; then
echo "running pod install as part of CI build"
chmod 777 /Library/Server/Xcode/Data
cd ${SRCROOT}
rm ./Podfile.lock
rm -rf ./Pods
sudo chown -R BUILD_USER .
sudo -H -u BUILD_USER pod install
sudo chown -R _teamsserver .
fi
You likely seen this already, but, it's worth mentioning for others. Check Justin Miller's post on Xcode and testflight post-archive actions for comparison with your script.
Good luck!
Steve