为将来需要解决相同问题的任何人添加问题
环境:Visual Studio 2017 或 2019
Postsharp 签名程序集时出现构建错误
MSBuild postsharptest.csproj /T:Rebuild /P:PostSharpTrace=StrongName /V:D /P:PostSharpHost=Native > postsharp.log
C:\ProgramData\PostSharp\4.0.41\bin.Release\postsharp.4.0-x86.exe obj\Debug\Before-PostSharp\PostsharpTest.exe /X:default /NoLogo /P:Output=C:\PostsharpTest\obj\Debug\PostsharpTest.exe /P:ReferenceDirectory=C:\PostsharpTest /P:Configuration=Debug /P:Platform=AnyCPU "/P:SearchPath=bin\Debug\|obj\Debug\|C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\|C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\ " /P:IntermediateDirectory=obj\Debug\PostSharp /P:CleanIntermediate=False /P:MSBuildProjectFullPath=C:\PostsharpTest\postsharptest.csproj /P:SignAssembly=true /P:PrivateKeyLocation=Thycotic.snk /P:PrivateKeyContainer= /P:DelaySign= "/P:ResolvedReferences=C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Microsoft.CSharp.dll|C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll|C:\PostsharpTest\packages\PostSharp.4.0.41\lib\net35-client\PostSharp.dll|C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Core.dll|C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.DataSetExtensions.dll|C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.dll|C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.dll|C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Net.Http.dll|C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.dll|C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.Linq.dll" /P:SymbolFile=bin\Debug\PostsharpTest.pssym /P:WriteWeavingSymbols=True /P:ConstraintVerificationEnabled=True /P:RuntimeVerificationEnabled=True /P:TargetFrameworkVersion=v4.5 /P:TargetFrameworkIdentifier=.NETFramework /P:TargetFrameworkProfile= "/P:TargetFrameworkMoniker=.NETFramework,v4.5" "/P:NativeFrameworkMoniker=.NETFramework,v4.5.1" /P:BindingMapsDirectory=C:\ProgramData\PostSharp\4.0.41\BindingMaps /P:PostSharpLibraryProfile= /P:AspectProviders= "/P:Language=C#" …Run Code Online (Sandbox Code Playgroud) 我工作的大学里有一位教授开发了一个 MacOS 应用程序,他需要签名,这样当用户尝试运行它时,它就不会被 MacOS 阻止。我已经获得了他的 CSR 并获得了为他创建的 Apple 开发人员证书(使用“临时”分发选项,该选项创建了一个名为“distribution.cer”的证书文件)。
我在 Apple 开发者网站上搜索了有关如何使用 XCode 签署应用程序的信息,但我不太能理解这些说明,因为我不是 XCode 用户或 Apple 开发人员。
据我所知,您还可以从终端签署应用程序,这是正确的吗?如果是这样,它是否仅适用于.pkg 安装程序,或者也适用于预编译的应用程序( .app 文件)?
在蒙特利更新到 Xcode 13.x 后,我开始收到大量代码签名错误:Command usr/bin/codesign failed with a nonzero exit code在构建项目时。
清理构建文件夹和删除派生数据并不能解决问题。有什么建议么?
我将 Xcode 13 更新到 14。之前我能够在 Xcode 13 中实现构建。更新到 Xcode 14 后出现错误
Pods.xcodeproj 签署“ID-Card-Camera-IDCardCameraResources”需要开发团队。在签名和功能编辑器中选择开发团队。
这是第一次尝试在iPad上测试我使用LiveCode创建的应用程序.
我确保IOS Provisioning Portal具有以下设置为ad hoc:
certificates in Development and Distribution.
Ipad is registered
Apple ID is set up
provisioning in Development and Distribution.
Run Code Online (Sandbox Code Playgroud)
当我尝试将应用程序放入Xcode时,会显示以下错误:
The executable was signed with invalid entitlements.
Run Code Online (Sandbox Code Playgroud)
如何让所有这些都进入xCode,以便我的LiveCode应用程序可以在iPad上进行测试?
我不确定为什么苹果因为这个原因而拒绝我的构建:
无效的代码签名权利 - 您的应用程序包的签名包含不受支持的代码签名权利.请检查您的Xcode项目的代码签名权利配置,并删除所有不需要的权利.
具体而言,不支持关键的"应用程序间音频".
我的应用甚至没有使用该API.我们的应用程序基本上使用AFNetworking和SVGHud库,它捕获视频/照片并将其上传到Web服务器.
苹果拒绝构建的任何理由?我该如何解决这个错误?
我正在尝试在iTunes上分发我的Phonegap应用程序.我之前成功完成了这项工作,但后来改为新Mac.我正在使用Xcode 5.0.2.
我已经创建了开发和分发证书.然后我创建了一个App ID,在"Explicit App ID"下输入Bundle ID.
然后,我为应用程序创建了一个开发配置文件,选择了正确的App ID,iOS开发证书,我的设备,为配置文件命名并单击"生成".我下载并双击添加到xcode.xcode管理器打开,我看到它已添加到我的设备配置文件中.然后,我可以在我的物理设备上成功运行该应用程序.
现在我想分发它.我创建了一个新的配置文件,在Distribution下选择"App Store",选择正确的App ID,iOS Distribution证书,然后单击"generate".当我双击下载的文件时,xcode中的管理器将打开,但分发配置文件不在设备配置文件下.当我单击+按钮添加配置文件时,我无法选择配置配置文件,但我可以选择开发配置文件:

我不知道为什么会这样.我尝试关闭并打开xcode,但无济于事.我试着等了几个小时.再一次,它没有用.
然后,我尝试通过创建存档来分发我的应用程序.首先我去构建设置>代码签名并选择iPhone Distribution:

然后我选择我的物理设备并选择产品>存档.我收到错误:
No matching provisioning profiles found
None of the valid provisioning profiles include the device Belgian Iphone (identifier: xxxxxxxxxxxxxxxxxxxxxxx).
Xcode can resolve this issue by downloading a new provisioning profile from the Member Center.
Run Code Online (Sandbox Code Playgroud)
我点击"修复问题"并最终得到错误:
There was an error generating the team provisioning profile for AppID 'FT49U8Q9JE'.
Run Code Online (Sandbox Code Playgroud)
此处给出的AppID与开发人员门户中App ID的前缀不同.我不知道它是否应该是一样的.有什么建议吗?我已经花了3天时间解决这个问题,如上所述,我之前的Mac上没有任何问题(我不再拥有)!
我意识到这个问题已经被问过好几次了,但是我尝试使用很多给出的答案来解决问题,但是很幸运。
CodeSign /Users/XXXXXXXX/Library/Developer/Xcode/DerivedData/XXXXXXXX-blligpejpeysabczydnolvooizok/Build/Products/Debug-iphoneos/XXXXXXXX.app
cd /Users/XXXXXXXX/Documents/Development/Native/tomhais
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
Signing Identity: "iPhone Developer: XXXXXXX"
Provisioning Profile: "iOS Team Provisioning Profile: XXXXXX"
XXXXXXXX
/usr/bin/codesign --force --sign XXXXXXXXX --entitlements /Users/XXXXXXX/Library/Developer/Xcode/DerivedData/XXXXXXX-XXXXXXXX/Build/Intermediates/tomhais.build/Debug-iphoneos/XXXXXX.build/XXXXXXX.app.xcent --timestamp=none /Users/XXXXXXX/Library/Developer/Xcode/DerivedData/XXXXXXX-XXXXXXXX/Build/Products/Debug-iphoneos/tomhais.app
/Users/XXXXXXX/Library/Developer/Xcode/DerivedData/XXXXXXX-XXXXXXXX/Build/Products/Debug-iphoneos/XXXXXXXX.app: code object is not signed at all
In subcomponent: /Users/XXXXXXXX/Library/Developer/Xcode/DerivedData/XXXXXXXX-XXXXXXXX/Build/Products/Debug-iphoneos/XXXXXXXX.app/0CeadLitir.png
Command /usr/bin/codesign failed with exit code 1
Run Code Online (Sandbox Code Playgroud)
我尝试了以下方法:
关于我可以尝试的任何其他想法?
我正在看微软wincrypt.h头文件中的这段C代码
//+-------------------------------------------------------------------------
// Attributes
//
// Where the Value's PATTR_BLOBs are in their encoded representation.
//--------------------------------------------------------------------------
// certenrolls_begin -- CRYPT_ATTRIBUTE
typedef struct _CRYPT_ATTRIBUTE {
LPSTR pszObjId;
DWORD cValue;
PCRYPT_ATTR_BLOB rgValue;
} CRYPT_ATTRIBUTE, *PCRYPT_ATTRIBUTE;
typedef struct _CRYPT_ATTRIBUTES {
DWORD cAttr;
PCRYPT_ATTRIBUTE rgAttr;
} CRYPT_ATTRIBUTES, *PCRYPT_ATTRIBUTES;
// certenrolls_end
Run Code Online (Sandbox Code Playgroud)
我正在运行此示例如何从Authenticode签名的可执行文件中获取信息.我可以在这两个代码中看到rgValue,并rgAttr作为阵列,例如访问
pSignerInfo->AuthAttrs.rgAttr[n].rgValue[0].pbData,
pSignerInfo->AuthAttrs.rgAttr[n].rgValue[0].cbData,
Run Code Online (Sandbox Code Playgroud)
如果我没有看到这个例子,我永远不会得到这个.是特定于Windows还是我对C中的结构和类型声明完全无知?
code-signing ×10
xcode ×6
ios ×4
api ×1
authenticode ×1
c ×1
cocoapods ×1
crc ×1
iphone ×1
macos ×1
msbuild ×1
objective-c ×1
postsharp ×1
provisioning ×1
swift ×1
winapi ×1
windows ×1