Maximo Anywhere iOS Build Archive error due to new build system
During Maximo Anywhere App Container build for iOS I was getting the below error
Reems-Air:ios sreeja$ xcodebuild -workspace AssetManager.xcworkspace -scheme AssetManager -configuration Release -destination generic/platform=iOS -archivePath AssetManager.xcarchive archive CONFIGURATION_BUILD_DIR=/Users/sreeja/IBM/Anywhere/MaximoAnywhereAppCntr/output/AssetDataManager/platforms/ios/build/device SHARED_PRECOMPS_DIR=/Users/sreeja/IBM/Anywhere/MaximoAnywhereAppCntr/output/AssetDataManager/platforms/ios/build/sharedpch "VALID_ARCHS=arm64 CURRENT_ARCH=arm64 ONLY_ACTIVE_ARCH=YES" Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace AssetManager.xcworkspace -scheme AssetManager -configuration Release -destination generic/platform=iOS -archivePath AssetManager.xcarchive archive CONFIGURATION_BUILD_DIR=/Users/sreeja/IBM/Anywhere/MaximoAnywhereAppCntr/output/AssetDataManager/platforms/ios/build/device SHARED_PRECOMPS_DIR=/Users/sreeja/IBM/Anywhere/MaximoAnywhereAppCntr/output/AssetDataManager/platforms/ios/build/sharedpch "VALID_ARCHS=arm64 CURRENT_ARCH=arm64 ONLY_ACTIVE_ARCH=YES" User defaults from command line: IDEArchivePathOverride = /Users/sreeja/IBM/Anywhere/MaximoAnywhereAppCntr/output/AssetDataManager/platforms/ios/AssetManager.xcarchive Build settings from command line: CONFIGURATION_BUILD_DIR = /Users/sreeja/IBM/Anywhere/MaximoAnywhereAppCntr/output/AssetDataManager/platforms/ios/build/device SHARED_PRECOMPS_DIR = /Users/sreeja/IBM/Anywhere/MaximoAnywhereAppCntr/output/AssetDataManager/platforms/ios/build/sharedpch VALID_ARCHS = arm64 CURRENT_ARCH=arm64 ONLY_ACTIVE_ARCH=YES note: Using new build system note: Building targets in parallel note: Planning build note: Constructing build description error: Building for iOS, but the linked and embedded framework 'IBMMobileFirstPlatformFoundation.framework' was built for iOS + iOS Simulator. (in target 'AssetManager' from project 'AssetManager') ** ARCHIVE FAILED **
This error is caused due to XCode project using the new Build System instead of Legacy build system which the Maximo Anywhere supports.
To Fix the issue Open the XCode project from the path e.g. where the XCode project is created during the build command.
/Users/sreeja/IBM/Anywhere/MaximoAnywhereAppCntr/output/AssetDataManager/platforms/ios/AssetManager.xcodeproj
or whichever application you are building for. e.x. WorkExecution, Inspection etc.
From XCode window go to Files->Project Settings and select Legacy Build System
After that run the ./build.sh command from the same MaximoAnywhereAppCntr folder path from terminal or you can also run it from XCode using Product-> Archive option.

Comments
Post a Comment