Posts

Post not yet marked as solved
1 Replies
I was able to partially test this with a custom URL scheme with a parameter containing the server url to use. In the AppDelegate I handle the custom URL scheme access and check if the server url value has been set in NSUserDefaults standardUserDefaults. If it has not been set then the url is set using the key. If it has been set a message displays that the app has already been configured and exits. Under ad hoc the html page has a button for install and then follows with configure. The next time the app is called by the user the new server url is used. Knowing that I can set the NSUserDefaults standardUserDefaults with the value, how would I get it using MDM managed configuration? Would the MDM update the NSUserDefaults standardUserDefaults with my server url value or would I have to check it using the com.apple.configuration.managed key and get the value if not set? Or would I still be able to have the MDM server install the app and then use the custom URL scheme with a parameter to set it? Thanks
Post not yet marked as solved
2 Replies
Also to add more information, below is what appears in the project pane on right for the Library consumer project along with NO EDITOR to the right of this and no Build Settings: // !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 46; objects = { /* Begin PBXBuildFile section */ 1855167821A5E0BD00E4AA73 /* LibraryClasses.m in Sources */ = {isa = PBXBuildFile; fileRef = 1855167721A5E0BD00E4AA73 /* LibraryClasses.m */; }; 18B17C0E21F0E63B00BED975 /* SwiftFile.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18B17C0D21F0E63B00BED975 /* SwiftFile.swift */; }; 18DB1F342195D7180045EA8D /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4925203121120B0B00AF7C8D /* AppDelegate.m */; }; 18DB1F352195D71D0045EA8D /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4925203421120B0B00AF7C8D /* ViewController.m */; }; 18DB1F362195D7270045EA8D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 4925202E21120B0B00AF7C8D /* main.m */; }; 18DB1F382195D74C0045EA8D /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 18DB1F372195D74C0045EA8D /* Default-568h@2x.png */; }; 18F1FB5E2201FB8A00D866B8 /* libCustomSwiftLibrary.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 18F1FB5D2201FB8A00D866B8 /* libCustomSwiftLibrary.a */; }; 18F1FB602201FB9900D866B8 /* libAppLibrary.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 18F1FB5F2201FB9900D866B8 /* libAppLibrary.a */; }; 18F1FB622201FBB900D866B8 /* libafsViewControlManager.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 18F1FB612201FBB900D866B8 /* libafsViewControlManager.a */; }; 4925203821120B0B00AF7C8D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4925203621120B0B00AF7C8D /* Main.storyboard */; }; 4925203A21120B0B00AF7C8D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4925203921120B0B00AF7C8D /* Assets.xcassets */; }; 4925203D21120B0B00AF7C8D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4925203B21120B0B00AF7C8D /* LaunchScreen.storyboard */; }; 4925204821120B0B00AF7C8D /* GenAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4925204721120B0B00AF7C8D /* GenAppTests.m */; }; 4925205321120B0B00AF7C8D /* GenAppUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4925205221120B0B00AF7C8D /* GenAppUITests.m */; }; /* End PBXBuildFile section */ Along with a lot more that would not fit here
Post not yet marked as solved
2 Replies
Thank you and you are correct. I installed the IPA file on my iPhone directly using Xcode and it loaded properly and everything works. I was surprised but happy at the reduced size. I am now looking at the html file I present to the user to download OTA. When I click on the link nothings happens. I changed the manifest file URL to http instead of https and I received the following error on my iPhone: "Cannot install applications because the certificate for (my domain) is not valid." Below is my html code: <a href="itms-services://?action=download-manifest&url=http://XXXXXX/MYApp/DistributionSummary.plist"> Download app by clicking here
Post not yet marked as solved
2 Replies
Here is the workaround: In the Xcode Build Phases Run Script - xcodebuild -target AppLibrary ONLYACTIVEARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos  BUILDDIR="${BUILDDIR}" BUILDROOT="${BUILDROOT}" xcodebuild -target AppLibrary -configuration ${CONFIGURATION} -sdk iphonesimulator BUILDDIR="${BUILDDIR}" BUILDROOT="${BUILDROOT}" Then build a simulator version of the project that uses the library and set the Frameworks and library path user header in build settings to point to the location of the iphonesimulator output of the above RunScirpt xcodebuild. This allows the simulator to run every time during development and debug without having to copy the files or build a universal lib. Don't forget to use finder to copy changes to the headers .h. files and move the correct simulator -Swift.h file to the project. In the Device testing and distribution version of the product use Finder to move the current version of the iphoneos library from RunScript xcodebuild to the Frameworks and keep the user search paths local in build settings. Copy the headers .h and device version of -Swift.h file. This works to get around not being able to copy files out of RunScript in Xcode 12 which may be a bug. Also cannot use LIPO to build universal library which also may be a bug.