Flutter ios版本构建失败,退出代码为1

时间:2019-09-24 19:09:46

标签: ios flutter

复制步骤

运行with q as ( select 'WHAT COULD BE THE REQ # 2145673' as sentence from dual union all select 'HOW MANY REQ# 1234673 COULD BE THERE' as sentence from dual union all select 'REQ# 2398723 OR THE SECOND REQ#' as sentence from dual union all select 'GEARREQ#1232124' as sentence from dual union all select 'REQ # 1234567, REQ# 1234886' as sentence from dual union all select 'REQ # 1, REQ# 1234886' as sentence from dual union all select 'REQ # 123, REQ# 1234886' as sentence from dual union all select 'REQ # 123456789, REQ# 1234886' as sentence from dual union all select 'REQ # 1234567890, REQ# 1234886' as sentence from dual ) select sentence, -- Locating just the key characters, allows you to accomodate -- variable length numbers following the key characters. regexp_substr(sentence,'REQ *# *',1) as keyword_find, regexp_substr(sentence,'REQ *# *[[:digit:]]+',1) as keyword_then_any_digits, regexp_substr(sentence,'REQ *# *[[:digit:]]{7}',1) as kw_match_exatly_seven, regexp_substr(sentence,'REQ *# *[[:digit:]]{1,7}',1) as kw_match_1_to_7_digits, regexp_substr(sentence,'REQ *# *[[:digit:]]{3,10}',1) as kw_match_3_to_10_digits, -- Some additional formatting will remove excess spaces and render output to specs. --- First regexp_substr selects the relevant text to format. -- Second regexp_substr grabs the number portion of relevant text. -- Then just append REQ# to front of that number. 'REQ# ' || regexp_substr(regexp_substr(sentence,'REQ *# *[[:digit:]]{7}',1),'[[:digit:]]+') as format_exactly_7 from q;

我在为iOS生成发布版本时遇到了麻烦,在我的应用因以下原因被苹果团队拒绝后,我注意到:

flutter build ios

我查找了有关这些API的信息,它似乎发送了一个调试版本而不是发行版本,因此我在终端上运行了发行版本的命令,我明白了:

TMS-90338: Non-public API usage - The app references non-public symbols in Frameworks/Flutter.framework/Flutter: _ptrace. If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed. For further information, visit the Technical Support Information at http://developer.apple.com/support/technical/

Xcode的输出:

Running Xcode build...                                                  

 ├─Building Dart code...                                    96,2s
 ├─Generating dSYM file...                                   0,4s
 ├─Stripping debug symbols...                                0,1s
 ├─Assembling Flutter resources...                           2,7s
 └─Compiling, linking and signing...                         6,5s
Xcode build done.                                           109,5s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

2 个答案:

答案 0 :(得分:0)

感谢您的答复,我通过卸载flutter的SDK并重新安装来解决了该问题。这就解决了问题。 :)

答案 1 :(得分:0)