It is a logic error in creating embeddedframework structure.
In build_embedded_framework function, the script removes the embeddedframework path at first and create a new one. After that it copies xxx.framework to embededframework folder. But at the second time of building, xxx.framework is only a link. The real data is in embeddedframework. If embeddedframework path is removed first, the result data is gone and link becomes invalid. Then the copy action is failed and an invalid link of xxx.framework left which will cause "create product structure" error during afterward builds.
If invalid xxx.framework link is already exist, it must be removed manually.
It is a logic error in creating embeddedframework structure.
In build_embedded_framework function, the script removes the embeddedframework path at first and create a new one. After that it copies xxx.framework to embededframework folder. But at the second time of building, xxx.framework is only a link. The real data is in embeddedframework. If embeddedframework path is removed first, the result data is gone and link becomes invalid. Then the copy action is failed and an invalid link of xxx.framework left which will cause "create product structure" error during afterward builds.
If invalid xxx.framework link is already exist, it must be removed manually.