【问题标题】:CocoaLibspotify frameworkCocoaLibspotify 框架
【发布时间】:2014-03-12 10:23:08
【问题描述】:

我使用 libspotify.framework 开发了一个应用程序,应用程序运行良好,但在提交 itunes 时出现错误错误是“无效签名-路径 [Macify.app/Contents/Frameworks/ 中的嵌套应用程序包 Spotify” libspotify.framework] 未签名”请查看附加图片并帮助我

【问题讨论】:

    标签: cocoa libspotify


    【解决方案1】:

    是的,经过更多的研究,我找到了这个问题的解决方案。 解决方案 : 1) 转到 xcode 中的项目导航器,单击“构建阶段”。 2)将有一个按钮“添加构建阶段”点击这个。 3)将打开一个列表,然后单击“添加运行脚本” 4)复制下面的代码并粘贴到那里:

    my $infoplist_path = "$ENV{BUILT_PRODUCTS_DIR}/$ENV{FRAMEWORKS_FOLDER_PATH}/libspotify.framework/Resources/Info.plist";
    
    #open the info plist
    open(my $input,  "<",  $infoplist_path)  or die "Can't open Info.plist: $!";
    my $outputstring = "";
    
    #loop through each line until we find CFBundleExecutable, then substitute the next line
    while (+<$input>) {
    $outputstring .= "$_";
    if (/[\t ]+<key>CFBundleExecutable<\/key>\n/) {
        my $line = +<$input>;
        $line =~ s/([\t ]+<string>)(.*?)(<\/string>)/$1.(libspotify).$3/eg;
        $outputstring .= $line;
     }
     }
    
     #write back out to Info.plist
     open(my $output,  ">",  $infoplist_path)  or die "Can't open Info.plist: $!";
      print $output $outputstring;
    

    5) 我相信如果有人遇到这个问题,那么它会使用这个代码来解决。

    【讨论】:

      猜你喜欢
      • 2014-01-22
      • 1970-01-01
      • 1970-01-01
      • 2012-02-14
      • 1970-01-01
      • 2014-04-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多