I am developing a ionic application but when I am trying to build it it is giving me below error
xcodebuild: error: The project named "SnapHome" does not contain a scheme named "SnapHome". The "-list" option can be used to find the names of the schemes in the project.
Below is the available schemes
Information about workspace "SnapHome":
Schemes:
SnapHome
I am using below script and enterprise provisioning profile to build the application, I have used same script to build other cordova applications
cordova build
projectname='xxxxx'
provisionprofilename="xxxxxxx"
outoutdirectory="xxxxxxx"
xcodeprojectdirectory="yyyyyy/snapapp/platforms/ios"
rm -f "$outoutdirectory"/"$projectname".xcarchive
rm -f "$outoutdirectory"/"$projectname".ipa
xcodebuild clean -project "$xcodeprojectdirectory"/"$projectname".xcodeproj -configuration Release -alltargets
xcodebuild -workspace "$xcodeprojectdirectory"/"$projectname".xcworkspace -list
xcodebuild archive -project "$xcodeprojectdirectory"/"$projectname".xcodeproj -scheme "$projectname" -archivePath "$outoutdirectory"/"$projectname".xcarchive
xcodebuild -exportArchive -archivePath "$outoutdirectory"/"$projectname".xcarchive -exportOptionsPlist exportPlist.plist -exportPath "$outoutdirectory"/"$projectname".ipa
Could you please let me know what is the issue and how to fix this. I am using xcode 8.3.2