IDS: Code for the iOS App
See Releases »
Research Paper
·
Test Results
·
See Global Usage
Table of Contents
This code will be used in order to receive the anomalies detected by the Arduino and to check if an event is linked to a distant action.
- Clone the project
git clone https://github.com/PIR-IDS/IDS-iOS-App.git
- Install the dependencies by typing the following command while being in the project root:
mint bootstrap
- Generate the
.xcodeprojdirectory by typing the following command while being in the project root:mint run xcodegen generate
- Open the
.xcodeprojdirectory in Xcodeopen idsapp.xcodeproj
To get the Development Debug IDS App.app file in the build/Build/Products/Debug-iphoneos/ directory, use the following command:
xcodebuild ONLY_ACTIVE_ARCH=NO -configuration Debug -target idsapp -scheme idsapp -derivedDataPath buildTo get the Development Release IDS App.app file in the build/Build/Products/Release-iphoneos/ directory, use the following command:
xcodebuild ONLY_ACTIVE_ARCH=NO -configuration Release -target idsapp -scheme idsapp -derivedDataPath buildTo get the Release Archive at the build/IDS App.xcarchive location (necessary to generate the IPA later with your own certificate), use the following command:
xcodebuild ONLY_ACTIVE_ARCH=NO -configuration Release -target idsapp -scheme idsapp -archivePath "build/IDS App.xcarchive" archiveIf you don't want to sign your builds, you can add the following environment variables: CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
To generate the IPA, first create your ExportOptions.plist file and fill it with the key-value pairs you want:
cp ExportOptions.plist.template ExportOptions.plistThen use the following command to generate your IPA at this location build/IDS App.ipa. Keep in mind we will have to sign your IPA with an Apple Developer Certificate.
xcodebuild -exportArchive -archivePath "build/IDS App.xcarchive" -exportOptionsPlist ExportOptions.plist -exportPath buildUse Xcode or deploy the generated .app with the tool of your choice, for example cfgutil from Apple Configurator or ios-deploy.
cfgutil install-app "IDS App.app"
# or
cfgutil install-app "IDS App.ipa"
# or
ios-deploy --bundle "IDS App.app"
# or
ios-deploy --bundle "IDS App.ipa" --bundle_id fr.pirids.idsappTo launch the unit tests and the UI tests, use the following command and replace <destination> with the destination platform of your choice:
xcodebuild test -target idsapp -scheme idsapp -destination <destination>To generate the IDS App.doccarchive documentation file in the build/Build/Products/Release-iphoneos directory, use the following command:
xcodebuild ONLY_ACTIVE_ARCH=NO docbuild -configuration Release -target idsapp -scheme idsapp -derivedDataPath buildDetails
TODO
Romain Monier [ GitHub ] – Co-developer
Noé Chauveau [ GitHub ] – Co-developer
Project Link : https://github.com/PIR-IDS/IDS-iOS-App
Organization Link : https://github.com/PIR-IDS
