I am building an Ionic app and I ran into a few issues trying to use PhoneGap Build to build my iOS version of it. I am developing using Visual Studio on a Windows 10 machine. I have both platforms installed (iOS and Android), and of course the Android build works just great.
I went to developer.apple.com and created my certificate and provisioning profile. I can use those to create the p12 file and create the key in PhoneGap Build. Then the fun starts. Here is the summary for the build-release.xcconfig file
ARCHS = armv7 arm64
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES
CODE_SIGN_ENTITLEMENTS = /tmp/gimlet/1121295/project/app.entitlements
CODE_SIGN_IDENTITY = iPhone Distribution
CONFIGURATION_BUILD_DIR = /tmp/gimlet/1121295/project/build
CORDOVALIB = /tmp/gimlet/1121295/project/CordovaLib
DEVELOPMENT_TEAM = 6US3xxxx5
ENABLE_BITCODE = false
HEADER_SEARCH_PATHS = "$(TARGET_BUILD_DIR)/usr/local/lib/include" "$(OBJROOT)/UninstalledProducts/include" "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include" "$(BUILT_PRODUCTS_DIR)"
IPHONEOS_DEPLOYMENT_TARGET = 8.0
ONLY_ACTIVE_ARCH = NO
OTHER_CODE_SIGN_FLAGS = --keychain /tmp/gimlet/1121295/secure.keychain
OTHER_LDFLAGS = -ObjC
PROVISIONING_PROFILE = ba85b501-xxxx-xxxx-xxxx-cfd0d1950e70
SWIFT_OBJC_BRIDGING_HEADER = $(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h
TARGETED_DEVICE_FAMILY = 1,2
and here is the config.xml header
xmlns:gap = "http://phonegap.com/ns/1.0"
As far as I can tell this is correct, however my build fails with this error:
myAppName requires a provisioning profile. Select a provisioning profile for the "Release" build configuration in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.1'
** ARCHIVE FAILED **
I have tried creating a build.json but that didn't work. I made sure my provisioning profile matches the id in the widget header, that didn't work.
I will appreciate any kind of help.