shrey24
New Member.
746 views

Error while Resigning:SecPolicySetValue: One or more parameters passed to a function were not valid.

HI all, 

When i try to resign the app with my Provision profile and certificate using HPMC Enabler UI, i get error: 

SecPolicySetValue: One or more parameters passed to a function were not valid..

Though the IPA is generated but when i try to push this IPA to mobile,  and open it , get error Device UDID is not set.

Running command:

/Users/shreyagupta/Desktop/HPMC/HPMCEnabler2.51/HPMCEnabler.app/Contents/Resources/HPMCEnabler /Users/shreyagupta/Downloads/HPMCEnabler2.51/HP4M-Agent.ipa -c "iPhone Developer: Shreya Gupta (73899J28JU)" -p /Users/shreyagupta/Desktop/HPMC/HPMC_Profile.mobileprovision -d /Users/shreyagupta/Desktop/HPMC -v
Unziping IPA into: /var/folders/c9/x80hmchd3c780ll27xxgr7r00000gn/T/hpeEnablerTempFolder
Unzipping the ipa
Unzipping the ipa with command : unzip -o -q '/Users/shreyagupta/Downloads/HPMCEnabler2.51/HP4M-Agent.ipa' -d /var/folders/c9/x80hmchd3c780ll27xxgr7r00000gn/T/hpeEnablerTempFolder
Codesigning app
Adding provision file to app
Getting entitlements from mobile provision: /var/folders/c9/x80hmchd3c780ll27xxgr7r00000gn/T/hpeEnablerTempFolder/../hpDecoded.mobileProvision
security: SecPolicySetValue: One or more parameters passed to a function were not valid.
Codesign using entitlements. "/var/folders/c9/x80hmchd3c780ll27xxgr7r00000gn/T/hpeEnablerTempFolder/../hpNewEntitlement.plist"
Dylibs codesign sucessful!
/var/folders/c9/x80hmchd3c780ll27xxgr7r00000gn/T/hpeEnablerTempFolder/Payload/HP4M-Agent.app/Frameworks/libswiftCore.dylib: replacing existing signature
Success Codesigning file :libswiftCore.dylib
/var/folders/c9/x80hmchd3c780ll27xxgr7r00000gn/T/hpeEnablerTempFolder/Payload/HP4M-Agent.app/Frameworks/libswiftCoreGraphics.dylib: replacing existing signature
Success Codesigning file :libswiftCoreGraphics.dylib
/var/folders/c9/x80hmchd3c780ll27xxgr7r00000gn/T/hpeEnablerTempFolder/Payload/HP4M-Agent.app/Frameworks/libswiftCoreImage.dylib: replacing existing signature
Success Codesigning file :libswiftCoreImage.dylib
/var/folders/c9/x80hmchd3c780ll27xxgr7r00000gn/T/hpeEnablerTempFolder/Payload/HP4M-Agent.app/Frameworks/libswiftDarwin.dylib: replacing existing signature
Success Codesigning file :libswiftDarwin.dylib
/var/folders/c9/x80hmchd3c780ll27xxgr7r00000gn/T/hpeEnablerTempFolder/Payload/HP4M-Agent.app/Frameworks/libswiftDispatch.dylib: replacing existing signature
Success Codesigning file :libswiftDispatch.dylib
/var/folders/c9/x80hmchd3c780ll27xxgr7r00000gn/T/hpeEnablerTempFolder/Payload/HP4M-Agent.app/Frameworks/libswiftFoundation.dylib: replacing existing signature
Success Codesigning file :libswiftFoundation.dylib
/var/folders/c9/x80hmchd3c780ll27xxgr7r00000gn/T/hpeEnablerTempFolder/Payload/HP4M-Agent.app/Frameworks/libswiftObjectiveC.dylib: replacing existing signature
Success Codesigning file :libswiftObjectiveC.dylib
/var/folders/c9/x80hmchd3c780ll27xxgr7r00000gn/T/hpeEnablerTempFolder/Payload/HP4M-Agent.app/Frameworks/libswiftQuartzCore.dylib: replacing existing signature
Success Codesigning file :libswiftQuartzCore.dylib
/var/folders/c9/x80hmchd3c780ll27xxgr7r00000gn/T/hpeEnablerTempFolder/Payload/HP4M-Agent.app/Frameworks/libswiftUIKit.dylib: replacing existing signature
Success Codesigning file :libswiftUIKit.dylib
Frameworks codesign sucessful!
/var/folders/c9/x80hmchd3c780ll27xxgr7r00000gn/T/hpeEnablerTempFolder/Payload/HP4M-Agent.app: replacing existing signature
Packaging new ipa
Packaging Command:pushd /var/folders/c9/x80hmchd3c780ll27xxgr7r00000gn/T/hpeEnablerTempFolder > /dev/null; zip -qry /var/folders/c9/x80hmchd3c780ll27xxgr7r00000gn/T/hpeRepackedIpa.ipa *; popd > /dev/null
Final ipa name: HP4M-Agent-Codesigned.ipa
Moving ipa to destination: /Users/shreyagupta/Desktop/HPMC/HP4M-Agent-Codesigned.ipa

SUCCESS!

New IPA path: "/Users/shreyagupta/Desktop/HPMC/HP4M-Agent-Codesigned.ipa"

0 Likes
1 Reply
Micro Focus Expert
Micro Focus Expert

Re: Error while Resigning:SecPolicySetValue: One or more parameters passed to a function were not va

Hi,

You can ignore this error (related to the XCode version that is installed on your machine).

Please be sure to sign the same way all 3 apps:

WebDriverAgentRunner-Runner.ipa

HP4M-Agent.ipa

HPMC-AgentLauncher.ipa

Rename it back to original names, replace the original files in MC installation Agent folder and restart MC server/connector.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.